<input type="file">上传文件

string filename = this.loading.Value;
if (filename != "")
{
string urlb = Server.MapPath("images/banner/");
var img = Context.Request.Files["loading"];
img.SaveAs(urlb + filename);
url = filename;
}

原文地址:https://www.cnblogs.com/wz9003/p/7052530.html