Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback when no file was valid #867

Open
OldrichTodt opened this issue Nov 15, 2019 · 3 comments
Open

Callback when no file was valid #867

OldrichTodt opened this issue Nov 15, 2019 · 3 comments

Comments

@OldrichTodt
Copy link

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
Copy link

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
Copy link
Author

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
Copy link
Collaborator

ygj6 commented Dec 6, 2019

You can try filters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants