Skip to content

fileFilter at processPending uploads all even if response is false #771

Closed Answered by yoavniran
OscarEstudilloMarin asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @OscarEstudilloMarin ,
its much clearer now.

I think fileFilter isn't the right tool here. I'd suggest using the "cancellable" event handlers/hooks for this purpose.
fileFilter was designed to filter out files immediately when they're added and not after they're in the queue.

Here's a guide that discusses cancalling uploads.

Additionally, I think cancelling will allow you to build a UI that makes it clear what happened to the item that was added. filtering simply makes the item disappear as if it wasn't added, which may be confusing to the user.

Alternatively, if you are able to determine whether files should be filtered out when they are added, but from a different location. It is…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by OscarEstudilloMarin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #760 on November 04, 2024 13:24.