-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Canceled batch is processed the next time I choose a file #472
Comments
thanks @mgrunberg |
@yoavniran thanks for your quick response. I found a workaround: listen to batch cancelation and call abort.
I hope this helps in the investigation. |
thanks. its actually a very simple bug and yet surprising that nor I or anyone else encountered it (at least not that was reported) |
@mgrunberg v1.4.0-rc.1 is available now with the fix. |
@yoavniran tested and v1.4.0-rc1 solves my issue! Thanks! |
Describe the bug
I'm trying to prevent users from uploading more than N files. I'm using
UPLOADER_EVENTS.BATCH_ADD
listener and returningfalse
whenbatch.items.length
is greater than the limit. I'm also usingUploadPreview
component to display progress.When I choose N + 1 files batch is canceled properly, no new preview items, no uploads. Then I choose less than N files and I see the previous N + 1 batch added to the preview list and uploaded.
To Reproduce
Steps to reproduce the behavior:
Upload
Upload
Expected behavior
Files from step #3 should not be uploaded, only files from step #5 should.
Versions
@rpldy version 1.3.1
Chrome version 110.0.5481.77 (Official Build) (64-bit)
Code
You can run it here
The text was updated successfully, but these errors were encountered: