leewinder / ng2-file-drop

An Angular module for simple desktop file drag and drop with automatic file validation and dynamic style adjustment.
MIT License
28 stars 26 forks source link

Reject file based on other criteria #44

Open andyrue opened 6 years ago

andyrue commented 6 years ago

It seems the only way to reject a file is based on file size or file type. I want to be able to reject a file based on a simple true/false response based on custom criteria not related to the file itself. Is there a way to do this? Either that, or I could also disable the dropzone based on a custom function response if that's possible. Thanks for any ideas on how to accomplish this.