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

Duplicate Files #54

Open
DaleMcNair opened this issue Mar 5, 2018 · 0 comments
Open

Duplicate Files #54

DaleMcNair opened this issue Mar 5, 2018 · 0 comments

Comments

@DaleMcNair
Copy link

DaleMcNair commented Mar 5, 2018

Hey there,

Unsure if this issue is caused by issues with the onDrop prop callback. I was using the onDrop prop to check for duplicate files (I store an array in state to check for duplicates) until I realised that the onDrop call would prevent the component from continuing thus no uploads would occur.

I then tried to put the same duplicate check in the s3-uploader preprocess prop call, I'm able to have minor success via the next(file) method, however when I hit a duplicate I can't simply skip that file by not calling next(file), as it then cancels uploads for all further files in that drop.

Is there something I'm missing to achieve this?

Many thanks

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

1 participant