Skip to content

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

Merged
sorbaugh merged 4 commits into
masterfrom
fixChromeDragToSubFolder
Jun 1, 2026
Merged

fix(files): Chromium-based browsers drag-and-drop#60519
sorbaugh merged 4 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

@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
@susnux
Copy link
Copy Markdown
Contributor

susnux commented May 21, 2026

grafik

seems to be related

@solracsf
Copy link
Copy Markdown
Member Author

Fixed.

Remaining cypress failures (files-renaming, live_photos, version_deletion) are pre-existing master flakes, same specs fail on unrelated PRs that don't touch the files app.

@susnux susnux marked this pull request as ready for review May 22, 2026 12:48
@susnux susnux requested review from a team and skjnldsv as code owners May 22, 2026 12:48
@susnux susnux requested review from nfebe and sorbaugh and removed request for a team May 22, 2026 12:48
@susnux susnux force-pushed the fixChromeDragToSubFolder branch from cd8b287 to fa34f46 Compare May 22, 2026 12:48
@susnux
Copy link
Copy Markdown
Contributor

susnux commented May 22, 2026

/compile

Copy link
Copy Markdown
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

Seems to fix chromium!

@susnux susnux requested a review from szaimen May 22, 2026 12:49
Copy link
Copy Markdown
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

🐘

@susnux susnux force-pushed the fixChromeDragToSubFolder branch 2 times, most recently from 320b6a6 to c050a31 Compare May 25, 2026 17:01
@susnux
Copy link
Copy Markdown
Contributor

susnux commented Jun 1, 2026

/compile rebase

solracsf and others added 4 commits June 1, 2026 09:47
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@nextcloud-command nextcloud-command force-pushed the fixChromeDragToSubFolder branch from c050a31 to 54d1c04 Compare June 1, 2026 09:49
@sorbaugh sorbaugh merged commit 3370e4b into master Jun 1, 2026
136 of 140 checks passed
@sorbaugh sorbaugh deleted the fixChromeDragToSubFolder branch June 1, 2026 11:43
@susnux
Copy link
Copy Markdown
Contributor

susnux commented Jun 1, 2026

/backport to stable33

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Jun 1, 2026

/backport to stable34

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Jun 1, 2026

/backport to stable32

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

5 participants