Try this:
HttpFileCollection objHttpFileCollection = Request.Files; string strFilePath = "C:files"; for (int i = 0; i < objHttpFileCollection.Count; i++)
{ HttpPostedFile objHttpPostedFile = objHttpFileCollection[i]; if (objHttpPostedFile.ContentLength > 0) {
objHttpPostedFile.SaveAs(strFilePath + "" + System.IO.Path.GetFileName(objHttpPostedFile.FileName)); //your code... } }