public void PostUpload() { var httpPostedFile = HttpContext.Current.Request.Files; foreach(string p in httpPostedFile) { var file = httpPostedFile[p]; file.SaveAs(HttpContext.Current.Server.MapPath("/test.jpg")); } }
public void PostUpload() { var httpPostedFile = HttpContext.Current.Request.Files; foreach(string p in httpPostedFile) { var file = httpPostedFile[p]; file.SaveAs(HttpContext.Current.Server.MapPath("/test.jpg")); } }