Author: sajesh28 | Posted on: 7/20/2009 6:22:09 AM | Views : 279

Hi All,
 I have an issue with fileupload control in ASP.NET 2.0.I am using Fileupload control for upload image in my website.i was use
 if (FileUpload1.HasFile)
{ 
 filename=FileUpload1.postedFile.Filename; 
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/Photos/") + filename);
}
for the upload.this code is work from IIS.but after uploading to webhosting server this one is not working.i dont know whats the issue.Webhosting company provide full permission for the folder Photos.
my website and photo folder in   Root Directory/membership folder.
Please help me to solve this issue.
Regards,
Sajesh
 
...

Go to the complete details ...