By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,983 Members | 2,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,983 IT Pros & Developers. It's quick & easy.

server.mapPath

OuTCasT
100+
P: 374
is it possible to give a host address as the server.mappath so that files can be uploaded to the host server. ?
i get and error saying that its not a valid virtual path
May 13 '08 #1
Share this Question
Share on Google+
1 Reply


jeffstl
Expert 100+
P: 432
is it possible to give a host address as the server.mappath so that files can be uploaded to the host server. ?
i get and error saying that its not a valid virtual path
Yes, you should be able to build a path in run time to where you need on the server.

You can also use request.servervaraibles("APPL_PHYSICAL_PATH") if you are having problems with mappath.

Try changing your path string around, or do a response.write to see what the final string path is so you can try to see why its incorrect.

As far as uploading files there are alot of other things to be done. I have used code from www.freeaspupload.net you could try.
May 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.