when i try to upload image from a file type input with angular validation its shows error and won't passes
<input type="file" name="displaypic" ng-model="displaypic" ng-pattern="/\.(jpe?g|png|gif|bmp)$/i" ng-required="true" />
<span ng-show="SignupForm.displaypic.$error.pattern">* Must be an Image</span>
with css as
input.ng-invalid.ng-touched{border: 2px solid red;}
its does not show the error of $error.pattern
but just get the css for invalid file and didn't let form to submit