Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(files): Correctly handle dropping folders on file list #41975

Merged
merged 2 commits into from
Dec 6, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Dec 2, 2023

Summary

If you currently drop a folder on on the files app it uploads the folder as an empty file. This happens as DataTransfer handles folders like files.
So instead we need to make use of the FileSystem API, which is also supported by any of our supported browsers.

This will handle recursive uploads of folders per Drag&Drop.

Screencast

After ✨

vokoscreenNG-2023-12-02_03-04-21.mp4

Before 🐛

vokoscreenNG-2023-12-02_03-06-47.mp4

Checklist

@susnux
Copy link
Contributor Author

susnux commented Dec 2, 2023

/backport to stable28

@solracsf

This comment was marked as off-topic.

@AndyScherzinger AndyScherzinger force-pushed the fix/files-handle-drop-folders-correctly branch from 612aab2 to 0a1ba4e Compare December 4, 2023 15:08
@AndyScherzinger
Copy link
Member

/compile /

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux requested a review from artonge December 6, 2023 15:46
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/files-handle-drop-folders-correctly branch from 0a1ba4e to 0d75a41 Compare December 6, 2023 15:47
@AndyScherzinger AndyScherzinger mentioned this pull request Dec 6, 2023
5 tasks
@skjnldsv skjnldsv merged commit b6f43c1 into master Dec 6, 2023
42 checks passed
@skjnldsv skjnldsv deleted the fix/files-handle-drop-folders-correctly branch December 6, 2023 17:59
@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Dec 6, 2023
@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2023

Thank you 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish backport-request bug feature: files
Projects
Archived in project
5 participants