nervgh / angular-file-upload

[ALMOST NOT MAINTAINED] Angular File Upload is a module for the AngularJS framework
MIT License
3.44k stars 1.13k forks source link

Callback when no file was valid #867

Open OldrichTodt opened 4 years ago

OldrichTodt commented 4 years ago

Hi,

I am using angular-file-upload v.2.5.0 and there is callback named onAfterAddingAll which is triggered only if some file was added to the queue. But if none file was added, the callback is not triggered. Is there any way to get callback like onAfterTryAddingAll which triggers after processing all files no matter if some file was added to the queue?

Regards, Todt

dotanMly commented 4 years ago

You could've use onWhenAddingFileFailed and in the callback you will have the item and the message . You can explore the Sample directory for more information

OldrichTodt commented 4 years ago

My goal is to aggregate errors. But if the user selects files that none was valid, then I do not receive a callback after that action and I can't determinate if adding to the queue was already processed or not.

ygj6 commented 4 years ago

You can try filters.