Skip to content

fix(filesDrop): drag-and-drop folder upload directories#59294

Open
solracsf wants to merge 1 commit intomasterfrom
dragDropDirCreate
Open

fix(filesDrop): drag-and-drop folder upload directories#59294
solracsf wants to merge 1 commit intomasterfrom
dragDropDirCreate

Conversation

@solracsf
Copy link
Copy Markdown
Member

Summary

When dragging and dropping a folder structure into any non-root destination (group folders, subfolders), subdirectories were created at the wrong WebDAV path. For team folders, the directory was created in the user's personal files entirely. Files then failed to upload because the target directory didn't exist in the team folder.

Pass the destination (IFolder) to createDirectoryIfNotExists so it uses destination.source as its WebDAV base URL, as uploader.upload already does.

Checklist

AI (if applicable)

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

@solracsf solracsf added this to the Nextcloud 34 milestone Mar 29, 2026
@solracsf solracsf requested review from a team and skjnldsv as code owners March 29, 2026 13:58
@solracsf solracsf added the 3. to review Waiting for reviews label Mar 29, 2026
@solracsf solracsf requested review from nfebe and susnux and removed request for a team March 29, 2026 13:58
@solracsf solracsf force-pushed the dragDropDirCreate branch from afb9a61 to 8373f2c Compare March 29, 2026 15:32
@susnux
Copy link
Copy Markdown
Contributor

susnux commented Mar 30, 2026

Should already be fixed with #58680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drag'n'drop Folders to a Team Folder doesn't work

2 participants