Skip to content

Fix multiple file drag-and-drop in dcc.Upload - #3916

Merged
KoolADE85 merged 2 commits into
plotly:devfrom
AnnMarieW:fix-upload-drag-drop
Jul 28, 2026
Merged

Fix multiple file drag-and-drop in dcc.Upload#3916
KoolADE85 merged 2 commits into
plotly:devfrom
AnnMarieW:fix-upload-drag-drop

Conversation

@AnnMarieW

@AnnMarieW AnnMarieW commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

closes #3671

Fixes a regression introduced in #3464

Fix drag-and-drop of multiple files in dcc.Upload. Collect all DataTransferItem entries before the first async operation to avoid losing items during drag event processing.

I'm not sure how to do a test for this, but when I run it locally, this fixes the multiple file drag/drop

@KoolADE85 KoolADE85 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I tested on Firefox and Chrome and it works well. Just needs a CHANGELOG entry.

@sonarqubecloud

Copy link
Copy Markdown

@AnnMarieW

Copy link
Copy Markdown
Collaborator Author

@KoolADE85 Thanks for the review! I added the changlog entry.

@KoolADE85
KoolADE85 merged commit 2ef4b25 into plotly:dev Jul 28, 2026
83 of 86 checks passed
@AnnMarieW
AnnMarieW deleted the fix-upload-drag-drop branch July 28, 2026 21:50
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.

[BUG] Dash upload components behaves differently on multiple file upload via drag & drop and file selector

3 participants