Pages

Saturday, April 16, 2011

Uploading Multiple Files

string FilePath = "D:/dhruval/HRMS/";
HttpFileCollection uploadFileCollection = Request.Files;

for (int i = 0; i < uploadFileCollection.Count; i++) { HttpPostedFile userPostedFile = uploadFileCollection[i]; if (userPostedFile.ContentLength > 0)
{
userPostedFile.SaveAs(FilePath+userPostedFile.FileName);
}
}


For Uploading Multiple Files

No comments:

Post a Comment