-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Do not hide the progress bar while the chunked upload is being assembled #11112
Do not hide the progress bar while the chunked upload is being assembled #11112
Conversation
Large files are not uploaded in a single operation, but uploaded in several chunks; once all the chunks are uploaded then the server needs to assemble them to get the final file. Before, once the chunks were uploaded the progress bar was hidden. However, this was confusing for the users, as the file could still need some time to appear in the file list due to the assembling. Now once all the chunks are uploaded the text in the progress bar changes to inform the user that there are still some pending operations, and only when the file is finally assembled the progress bar is hidden. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
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.
Seems to do the trick
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 and works 👍
@danxuliu Could you backport this to stable14? |
Sure; I intended to backport it to stable13 too, should I do it only for stable14? |
Fine with me to backport it to both. |
Done :-) |
Fixes #9554
Large files are not uploaded in a single operation, but uploaded in several chunks; once all the chunks are uploaded then the server needs to assemble them to get the final file.
Before, once the chunks were uploaded the progress bar was hidden. However, this was confusing for the users, as the file could still need some time to appear in the file list due to the assembling. Now once all the chunks are uploaded the text in the progress bar changes to inform the user that there are still some pending operations, and only when the file is finally assembled the progress bar is hidden.
How to test:
sleep(10);
toperformMove
in ChunkingPlugin.phpCurrent result:
The text in the progress bar changes to Processing files... when all the chunks are uploaded, and it is hidden once the move finishes and the file appears in the file list.
Previous result:
The progress bar was hidden as soon as all the chunks were uploaded, and after some seconds the file appeared in the file list.
Reviewers, if you cancel a chunked upload you will notice that it does not work as expected; it is a known problem and it will be fixed in a different pull request.
@nextcloud/javascript