Sajid
Sajid

Reputation: 85

show alert box when user select non accepted file in danialfarid/ng-file-upload plugin

Upvotes: 1

Views: 3059

Answers (1)

danial
danial

Reputation: 4098

Something like this:

<div ngf-select ngf-pattern="'.png,.jpg'" ng-model="file">

<div class="alert" ng-show="file.$error === 'pattern'">file type is not accepted. Acceptable files: {{file.$errorParam}}</div>

Upvotes: 2

Related Questions