标签:turn load app dir path str get pre pos
public ActionResult Index(IEnumerable<HttpPostedFileBase> files) {
foreach (var file in files) {
if (file.ContentLength > 0) {
var fileName = Path.GetFileName(file.FileName);
var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);
file.SaveAs(path);
}
}
return RedirectToAction("Index");
}
标签:turn load app dir path str get pre pos
原文地址:https://www.cnblogs.com/Kirins/p/10294088.html