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")); } }
原文:https://www.cnblogs.com/superfeeling/p/11544224.html