Christian Garnir
|
| Posted: 08/08/2001, 10:00 PM |
|
To finalize the last bit in a component less upload in pure asp I need to
know
is it possible to insert a session variable in to the Server.MapPath string
I want to insert a subdirectory at runtime.
I know that the category directory exist so I can include this, but what
about a subdirectory we only know from a session variable?
Chris
original code:
' Save the file to the file system
Set fso = CreateObject("Scripting.FileSystemObject")'
strPath= Server.MapPath(".\category\") & "\"
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
FSO.OpenTextFile(strPath & sFileName, nForWriting, True).Write sNewData
Set FSO = Nothing
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 08/13/2001, 6:08 AM |
|
Yes , it is possible to use this approach to determine
where to upload by session var and mappath
--
Alex
Christian Garnir <cgconsult@usa.net> wrote in message
news:9kt5e7$43p$1@news.codecharge.com...
> To finalize the last bit in a component less upload in pure asp I need to
> know
> is it possible to insert a session variable in to the Server.MapPath
string
> I want to insert a subdirectory at runtime.
> I know that the category directory exist so I can include this, but what
> about a subdirectory we only know from a session variable?
>
> Chris
> original code:
> ' Save the file to the file system
> Set fso = CreateObject("Scripting.FileSystemObject")'
> strPath= Server.MapPath(".\category\") & "\"
> Set FSO = Server.CreateObject("Scripting.FileSystemObject")
> FSO.OpenTextFile(strPath & sFileName, nForWriting, True).Write sNewData
> Set FSO = Nothing
>
>
>
>
|
|
|
 |
|