angular-file-upload icon indicating copy to clipboard operation
angular-file-upload copied to clipboard

Callback when no file was valid

Open OldrichTodt opened this issue 4 years ago • 3 comments

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

OldrichTodt avatar Nov 15 '19 16:11 OldrichTodt

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

dotanMly avatar Nov 16 '19 18:11 dotanMly

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.

OldrichTodt avatar Nov 18 '19 07:11 OldrichTodt

You can try filters.

ygj6 avatar Dec 06 '19 08:12 ygj6