How to create MVC 4 @Html.TextBox type=“file”?

后端 未结 7 2143
萌比男神i
萌比男神i 2021-02-20 14:57

I need to add the following field at my form


I create model and describe this field (the las

7条回答
  •  感情败类
    2021-02-20 15:15

    I solved this problem using enctype="multipart/form-data"

    @using (Html.BeginForm("SalvarEvidencia", "Evidencia", FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        ...
    }
    

提交回复
热议问题