Hi,
 
 
C#
if (file != null && file.ContentLength > 0) { // extract only the fielname var fileName = Path.GetFileName(file.FileName); // store the file inside ~/App_Data/uploads folder var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);         file.SaveAs(path); }
More details : http://stackoverflow.com/questions/17877072/getting-the-file-path-from-httppostedfilebase