首页 > 代码库 > <input type="file">上传文件

<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;
}

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