-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Allow upload of empty folders via drag & drop in WebUI #39285
Conversation
fefce06
to
5cd0a25
Compare
5cd0a25
to
9a9409e
Compare
Note, we are touching Which has been already done by our devs, e.g bf04daf#diff-ae6d415538c7caff6e1d808b2d442226a680c6ca54576ba4e9f08317bdeee387 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few suggestions for words in text. If you are sorting out test coverage, you can consider these also. IMO we should not say "This PR" in changelogs, because readers of the changelog may not know what "PR" is.
Works for me - I manually tested drag-and-drop of an empty folder, folder with a file, and flder with a mix of files and folders. I dropped them into the root, or on top of (=into) an existing folder of a user. All combinations worked. Tested on Ubuntu 20.04 with these browsers: |
I might be mistaking with a similar issue, but I think there were problems because the behavior is browser-dependent. |
@jvillafanez Please reference the GitHub or Portal issue here I suspect IE and Opera won't work here, because of the limited API https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry |
cd5017f
to
e43937d
Compare
I tested Opera on Ubuntu 20.04 and it works. |
@micbar can we merge as approved, adding js tests for this case would be much overhead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming tests pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I manually tested with 3 different browsers. See comment #39285 (comment)
SonarCloud Quality Gate failed. |
Description
Enhancement: Allow empty folder uploads via webUI
Before this PR, drag and drop an empty folder did not work, there was no
response in the webUI anyways.
While uploading a folder with a text file and an empty folder,
the folder with the text file was created but the empty folder wasn't.
With this PR the upper scenarios work now.
Related Issue
Motivation and Context
How Has This Been Tested?
Tested on browsers
Screenshots (if appropriate):
Types of changes
Checklist: