954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

file path problem

i have a file uploaded to my server
the path is shown as
E:\abc\def\upload\contents.doc

to download it the path should be

http://3.212/232/abc/def/upload/contents.doc

how do i go about it ?
i am saving the file by using

o.FileFullPath = Server.MapPath(".") & "\upload\"  & sFile

from a script i downloaded

aashishn86
Junior Poster
188 posts since Jun 2008
Reputation Points: 10
Solved Threads: 9
 

i am saving the file by using

o.FileFullPath = Server.MapPath(".") & "\upload\"  & sFile


You need to give url as
http:\\pathofyouraspfile\upload\filename.
For e.g. if you are uploading file using upload.asp and url is
http:\\websitepath\upload.asp
Then url for downloading path will be
http:\\websitepath\upload\filename

punitdam
Light Poster
32 posts since May 2008
Reputation Points: 12
Solved Threads: 3
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You