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

Do not hide the progress bar while the chunked upload is being assembled #11112

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Sep 7, 2018

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:

Current 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

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>
@danxuliu danxuliu added this to the Nextcloud 15 milestone Sep 7, 2018
@danxuliu danxuliu requested review from blizzz and skjnldsv September 7, 2018 20:34
@MorrisJobke
Copy link
Member

@michag86 😉

Copy link
Member

@rullzer rullzer left a 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

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@MorrisJobke MorrisJobke merged commit fb17f1a into master Sep 26, 2018
@MorrisJobke MorrisJobke deleted the do-not-hide-the-progress-bar-while-the-chunked-upload-is-being-assembled branch September 26, 2018 10:23
@MorrisJobke
Copy link
Member

@danxuliu Could you backport this to stable14?

@danxuliu
Copy link
Member Author

Could you backport this to stable14?

Sure; I intended to backport it to stable13 too, should I do it only for stable14?

@MorrisJobke
Copy link
Member

I intended to backport it to stable13 too, should I do it only for stable14?

Fine with me to backport it to both.

@danxuliu
Copy link
Member Author

Fine with me to backport it to both.

Done :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No indication of file assembling in chunked upload via web
3 participants