danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.59k forks source link

Show rejectClass when file exceeds maxSize #2001

Open nickgrealy opened 7 years ago

nickgrealy commented 7 years ago

Files that exceed the maxSize are not triggering the rejectClass (the acceptClass shows instead).

Is there any way to show the reject class for files that are too big?

e.g.

ngf-max-size="1MB" 
ngf-drag-over-class="{pattern: 'image/*', accept:'acceptClass', reject:'rejectClass', delay:100}"