-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
V15: Add progress UI to the Upload Field property editor #18188
V15: Add progress UI to the Upload Field property editor #18188
Conversation
…est to be aborted
@iOvergaard instead of having the "remove" action until file is uploaded, would it be better having a "cancel" action while upload is in progress? That way it would still show "card" even though the operation is cancelled. |
Added "Cancel" button, from @bjarnef's suggestion.
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.
Tested out, works great! 🚀
Following @bjarnef's suggestion I changed the button to "Cancel" during the upload progress.
Description
Adds uploader UI for the Upload Field property editor UI used in the details view of the Media Library.
Changes
AbortSignal
, which is facilitated through anAbortController
allowing the request to be canceledFileReader
anymore, which avoids loading the file into memorySuccess
2025-01-31.at.11.26.26.-.Coral.Heron.mp4
Error
2025-01-31.at.11.27.31.-.Maroon.Jaguar.mp4
Canceled
2025-01-31.at.11.57.20.-.Scarlet.Python.mp4