Upload multiple files in MVC3 with model binding

邮差的信 提交于 2019-12-05 23:31:29

I've had this before. This might be the fix.

Looks like you are missing the multipart/form-data in your view (@using (Html.BeginForm()))

Try replacing @using (Html.BeginForm()) with @using (Html.BeginForm("action", "controller", FormMethod.Post, new { enctype = "multipart/form-data" }))

Obviously replace action and controller with yours.

Hope this helps ~ Will

Edit: Sorry, just seen the date posted, if you havn't figured it out then maybe this was it?

A Perfect blog About this Here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!