-
Notifications
You must be signed in to change notification settings - Fork 157
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
[full-ci] Implement single file upload on "paste" action #9140
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
Results for e2e-tests oC10 https://drone.owncloud.com/owncloud/web/36235/11/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36235/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-alice-2023-6-1-09-15-38.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36235/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-brian-2023-6-1-09-15-57.zipnpx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36235/tracing/alice-can-share-this-weeks-meal-plan-with-all-parents-carol-2023-6-1-09-16-03.zip |
packages/web-app-files/src/components/AppBar/CreateAndUpload.vue
Outdated
Show resolved
Hide resolved
packages/web-app-files/src/components/AppBar/CreateAndUpload.vue
Outdated
Show resolved
Hide resolved
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.
Code LGTM and works nice :) 2 more things though:
- When selecting multiple files there should probably be a message informing the user that only 1 file was pasted successfully because of security reasons.
- If
unref(canUpload)
isfalse
you can early return as well.
I don't think we have the information that the user has selected multiple files, we just have this one file even when multiple are selected, but other point is valid ^^ |
So the API doesn't even provide that information? Well, okay. Too bad :( |
Theoretically it depends on the browser, but since all sources i found say only one will be pasted i think it makes no sence to provide logic for the case a browser comes along which gives us an file array of two files :D |
Kudos, SonarCloud Quality Gate passed! |
* Upload file on paste * refactor * Add changelog * Address PR issues * Fix .find is not a function error * remove useless mutation * reintroduced wrongly removed item * Add canUpload check
Description
See #9047
Related Issue
Types of changes
Checklist: