📅  最后修改于: 2022-03-11 14:57:07.956000             🧑  作者: Mango
@{
ViewBag.Title = "UploadFile";
}
UploadFile
@using (Html.BeginForm("UploadFile", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.TextBox("file", "", new { type = "file" })
@ViewBag.Message
}