How to keep input type=file field value after failed validation in ASP.NET MVC?

前端 未结 7 1809
闹比i
闹比i 2020-11-27 04:39

I\'ve got a simple form in an MVC app I\'ve made. It contains a file field so users can upload an image. It all works great.

Problem is, if the form submit fails val

7条回答
  •  执念已碎
    2020-11-27 04:49

    There are flash based file uploaders. Try one of them. Some of them even falls back to regular file input box if flash and java script is not supported. I advise to look for jQuery plugins.

提交回复
热议问题