Skip to content

Conversation

@benjamincarp
Copy link

You could add multiple files to the files array that had the same unique identifier if there were 2 files of the same name and size inside a single folder and it's subfolders if you dragged the parent folder into your resumable drop zone.

This was because files were being added to the files array inside the setTimeout that wraps the fileAdded event trigger. That meant files would be hitting the if (!$.getFromUniqueIdentifier(uniqueIdentifier)) check before previous files were actually added to the array.

steffentchr added a commit that referenced this pull request Mar 25, 2015
fix order of operations bug with duplicate files in one drag/drop
@steffentchr steffentchr merged commit 4985f0f into 23:master Mar 25, 2015
@steffentchr
Copy link
Member

Looks good, merging. Thanks @benjamincarp.

@benjamincarp
Copy link
Author

Dang you're fast!

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

Successfully merging this pull request may close these issues.

2 participants