This is a migrated thread and some comments may be shown as answers.

Server.MapPath in Virtual Directory

0 Answers 190 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Roderick
Top achievements
Rank 1
Roderick asked on 04 Jun 2009, 04:38 PM
I have two sites on the same server is a public and another private, I've created a virtual directory to put all documents and images to upload from the private site and that people who consult the site the public can see. The problem is that when you send me the address error, I put that path when uploading files from radupload.

Option 1:   
f.SaveAs(Server.MapPath("../Documentos/PDF/RRHH/") & f.GetName)  
 
Option 2:   
f.SaveAs(Server.MapPath("~/Documentos/PDF/RRHH/") & f.GetName)   
 
Option 3:   
f.SaveAs(Server.MapPath("/Documentos/PDF/RRHH/") & f.GetName)   
 

 

 

Another Option:
?

No answers yet. Maybe you can help?

Tags
Upload (Obsolete)
Asked by
Roderick
Top achievements
Rank 1
Share this question
or