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

Browsers are designed in such way because of security risks. It’s impossible to set value of file input box in HTML source or by Javascript. Otherwise malicious script could steal some private file without user attention.

There is an interesting information about the subject.

Leave a Comment