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

[stable18] Fix total upload size overwritten by next upload #24857

Conversation

danxuliu
Copy link
Member

Backport of #24833

The upload progress is based on the "totalToUpload" variable. However,
as the variable is set when an upload is submitted, if another upload is
submitted before the previous one finished the upload progress only took
into account the size of the new upload (although the upload itself
worked fine; the files of the new submitted upload are added to the
active one). Now "totalToUpload" is either increased or set depending on
whether an upload is active or not.

Note that although "data.total" holds the total size of the files being
uploaded "totalToUpload" needs to be used in "fileuploadprogressall"
instead; "totalToUpload" is calculated when the upload is submitted, but
since 7c4c5fe the actual upload of the files, and thus updating the
value of "data.total", may be deferred until the parent folders were
created.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@faily-bot
Copy link

faily-bot bot commented Dec 28, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 751: failure

handlebars

@rullzer rullzer merged commit 852b9e9 into stable18 Dec 29, 2020
@rullzer rullzer deleted the backport/24833/stable18-fix-total-upload-size-overwritten-by-next-upload branch December 29, 2020 12:20
@rullzer rullzer mentioned this pull request Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants