Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Jan 31, 2025

The backend does not allow creating folders currently, so we have to disable it for now.

szaimen

This comment was marked as resolved.

@MrRinkana

This comment was marked as off-topic.

@susnux

This comment was marked as resolved.

@susnux susnux force-pushed the fix/files-sharing-file-drop-folder branch from 91cfea0 to 4406ebc Compare April 30, 2025 14:40
@susnux susnux requested a review from a team as a code owner April 30, 2025 14:40
@susnux susnux requested review from nfebe, sorbaugh and szaimen and removed request for a team and Pytal April 30, 2025 14:40
@susnux
Copy link
Contributor Author

susnux commented Apr 30, 2025

/backport to stable31

@susnux susnux force-pushed the fix/files-sharing-file-drop-folder branch from 4406ebc to 1dfbc67 Compare April 30, 2025 14:41
@MrRinkana
Copy link

MrRinkana commented Apr 30, 2025

@susnux It currently works to upload the CONTENTS of a folder through that menu option. I just tested it, as mentioned in the comment. The issue you link is about preserving folderstructure, which is not required to upload the contents of a folder from the uploaders machine. (many might even expect it to place the files in the root of the share folder)

Or am I missunderstanding?

@susnux
Copy link
Contributor Author

susnux commented Apr 30, 2025

No, it only uploads (with luck) the top level of the folder. It fails in the MKCOL (make directory) as this is not implemented.
Then the whole upload will be aborted.

@MrRinkana
Copy link

MrRinkana commented Apr 30, 2025

Hm, if there's luck involved then that would warrant its removal. But I just tested it with a folder containing 52 files in 22 subfolders with varying nesting - every single file was uploaded - no errors.

Drag and dropping a folder however is completely broken (fails every time). To my understanding this mr does not prevent drag and dropping a folder. In the optimal world drag and drop of a folder is prevented with a small toast/notification that folder upload is not supported as it might be very confusing otherwise (since files can be drag and dropped).

Edit: Im testing with both firefox and ms edge on a linux machine if it matters

Edit2: for me only drag and drop attempts to create folders (it triggers a bunch of "could not create folder" notifications.
Using the menu option does not trigger any, and all files are placed in the root of the shared folder.

Edit3: My browsers even ask me if I want to upload all files from those folders, I also tested a folder containing 1182 files in 57 subfolders of varying nesting, all files were uploaded, no errors. I'm quite confident the menu option works as it should.

Copy link
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.

Tested and seems to work now :)

@susnux susnux force-pushed the fix/files-sharing-file-drop-folder branch 2 times, most recently from 84d3491 to 95d25c0 Compare April 30, 2025 17:28
@susnux susnux changed the base branch from master to stable31 May 13, 2025 16:41
@susnux susnux changed the title fix(files_sharing): Disable folder upload on file drop shares for now [stable31] fix(files_sharing): Disable folder upload on file drop shares for now May 13, 2025
@susnux
Copy link
Contributor Author

susnux commented May 13, 2025

32 now allows folder uploads, maybe backport to 31 directly ?

Done

@susnux
Copy link
Contributor Author

susnux commented May 13, 2025

/compile

The backend does not allow creating folders currently, so we have to
disable it for now.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
Copy link
Contributor Author

susnux commented May 17, 2025

/compile

@susnux susnux force-pushed the fix/files-sharing-file-drop-folder branch from 1cc6624 to 2bb2bbc Compare May 17, 2025 10:04
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@susnux susnux merged commit ff5bd5c into stable31 May 17, 2025
128 of 130 checks passed
@susnux susnux deleted the fix/files-sharing-file-drop-folder branch May 17, 2025 11:00
@backportbot
Copy link

backportbot bot commented May 17, 2025

The backport to stable31 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable31
git pull origin stable31

# Create the new backport branch
git checkout -b backport/50591/stable31

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 2bb2bbca 361ccc74

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/50591/stable31

Error: Failed to check for changes with origin/stable31: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@nextcloud-bot nextcloud-bot mentioned this pull request Jun 4, 2025
10 tasks
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 31.0.0 RC2 File Drop folder fails

7 participants