更新时间:2023-02-17 12:12:14
p>确保将表单的 enctype
属性设置为multipart / form-data。
Make sure to set the enctype
attribute of the form to "multipart/form-data".
@using (Html.BeginForm("TheAction", "TheController", FormMethod.Post, new{enctype="multipart/form-data")){
...
}