I've been experimenting with this issue and haven't been able to solve it. While creating an Angular form, I found that validation works fine when the required
attribute is used in a text field. However, when I tried adding a file input type with the required
attribute, I noticed that even after selecting a file, the $error.required
message still showed up and the validation did not work properly. I have prepared a sample on jsfiddle for reference: http://jsfiddle.net/Alien_time/kxSaz/6/
Why is validation not working for file inputs? How can I make a required option validate correctly when using a file selection?