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")); } }
2024-01-05 21:24:34
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")); } }