hi
i am using fileupload tag to upload the file. what is does it saves the file into the follwoing directory: C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0\
can somebody tells me how to change this path and save the upload file into some other directory.
Loading

Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 28, 2011, 6:00 AM EDT
FileUploadControl.SaveAs(Server.MapPath("~/Uploads")+f_Name);
with
FileUploadControl.SaveAs(Server.MapPath("~/Uploads/")+f_Name);
We are assuming that you have a Uploads directory in your web root folder, otherwise change the path to your desired folder.
TulasiRank #2,544 · 549 reputationPosted Oct 28, 2011, 3:37 AM EDT
chk this code
string f_Name=Path.GetFileName(FileUploadControl.FileName);
FileUploadControl.SaveAs(Server.MapPath("~/Uploads")+f_Name);
saifullah khanRank #4,887 · 320 reputationPosted Oct 28, 2011, 4:34 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Oct 28, 2011, 9:47 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 28, 2011, 11:28 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Oct 28, 2011, 12:18 PM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 28, 2011, 12:26 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Oct 28, 2011, 1:13 PM EDT