Skip to content

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 /

@susnux susnux requested a review from artonge December 6, 2023 15:46
Signed-off-by: Ferdinand Thiessen <[email protected]>
@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
@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 bug feature: files

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Bug]: Upload a folder with files inside via drag&drop don´t work [Bug]: Drag and Drop functionality is not working

6 participants