Skip to content

fix(files): Chromium-based browsers drag-and-drop#60519

Draft
solracsf wants to merge 2 commits into
masterfrom
fixChromeDragToSubFolder
Draft

fix(files): Chromium-based browsers drag-and-drop#60519
solracsf wants to merge 2 commits into
masterfrom
fixChromeDragToSubFolder

Conversation

@solracsf
Copy link
Copy Markdown
Member

@solracsf solracsf commented May 18, 2026

Summary

Per-row drop handler passed FileSystemEntry to batchUpload; on some Chromium builds the library's instanceof FileSystemFileEntry check fails and the entry crashes the chunk uploader with e.slice is not a function. Firefox unaffected.

Route the per-row drop through dataTransferToFileTree + onDropExternalFiles, matching the main-list drop. Converts entries to File via duck-typed entry.isFile before they leave this codebase.

Adds three Cypress tests for the previously-uncovered per-row drop path.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf solracsf added the 2. developing Work in progress label May 18, 2026
@solracsf solracsf requested a review from susnux May 18, 2026 21:52
@susnux susnux added the bug label May 19, 2026
@solracsf
Copy link
Copy Markdown
Member Author

Forgot to mention, this is related to #60139

Comment thread apps/files/src/components/FileEntryMixin.ts Outdated
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Drag and Drop upload to subfolder works in Firefox but not Chrome based browser

2 participants