nextcloud/apps/files
Daniel Calviño Sánchez d4b1ba7785 Fix total upload size overwritten by next upload
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 7c4c5fe6ae 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>
2020-12-28 10:21:13 +00:00
..
ajax Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
appinfo merge file activity settings into a single 'favorite changed' item 2020-08-13 00:01:34 +02:00
composer Make sure columns with an empty default are nullable for Oracle 2020-11-12 12:57:51 +01:00
css Bring back the restore share button 2020-10-22 18:58:57 +00:00
img compress some images with tinypng.com 2020-05-22 13:07:11 +00:00
js Fix total upload size overwritten by next upload 2020-12-28 10:21:13 +00:00
l10n [tx-robot] updated from transifex 2020-12-26 02:19:59 +00:00
lib Stop transfer of ownership between same users 2020-10-12 20:03:17 +00:00
src Fix app sidebar mountpoint 2020-10-15 13:25:31 +00:00
templates Fix some MissingDocblockType or InvalidDocblock warnings. 2020-08-14 15:10:48 +02:00
tests Check for target folder available quota when uploading 2020-11-17 15:33:54 +01:00
.l10nignore Ignored compiled js files in files 2019-11-01 08:29:41 +01:00
list.php Make sure every file ends with an empty newline 2020-04-09 16:11:50 +02:00
recentlist.php Update license headers 2019-12-05 15:38:45 +01:00
simplelist.php Make sure every file ends with an empty newline 2020-04-09 16:11:50 +02:00
webpack.js Add OCA.Files.Settings for Files Settings 2020-03-22 22:34:49 +08:00