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

Toggle Add Video(s) buttons during upload when using Chunkuploader #411

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

ferishili
Copy link
Contributor

@ferishili ferishili commented Jan 7, 2025

This PR fixes #308

Description

When uploading a large file, it might take some times until the file is 100% upload in both Moodle file picker element or Chunkuploader. During upload, if the add video button is accidentally pressed, the upload is going to be perform but with incompleted files which ends up with broken episode etc.
For that there was already the add video button (Disable/Enable) feature when drag and drop files into the Moodle basic file picker element, but the feature was missing for the chunkuploader.

Solution

This PR now provides the disable/enalbe feature of the add video button also for chunkuploader, by watching the progressbar of the chunkuploader block during upload!

Note to the initial request:

The inital issue requested a cancel button during upload, which is not possible to implement because Moodle itself does not provide a standard way. Therefore, in favor of avoiding complexity this part of the request is denied!

@ferishili ferishili requested a review from bluetom January 7, 2025 11:52
@ferishili ferishili self-assigned this Jan 7, 2025
@bluetom bluetom merged commit 68ec102 into Opencast-Moodle:main Jan 13, 2025
7 checks passed
@bluetom bluetom added the 4.5.3 label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggestion: prevent "Add video" button from being clicked during uploads
2 participants