nextcloud/apps/files
Daniel Calviño Sánchez acdf895c2d 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:24:12 +00:00
..
ajax Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
appinfo Update license headers for 19 2020-04-29 11:57:22 +02:00
composer Update autoloaders for composer v1.10.1 2020-03-19 09:48:49 +01:00
css Bring back the restore share button 2020-10-22 19:01:18 +00:00
img Js magic for deleted shares 2018-07-05 12:43:57 +02:00
js Fix total upload size overwritten by next upload 2020-12-28 10:24:12 +00:00
l10n [tx-robot] updated from transifex 2020-12-26 02:20:08 +00:00
lib add mount point to quota warning message 2020-11-12 14:39:12 +01:00
src Fix workflow UI 2020-04-23 13:52:04 +02:00
templates Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
tests Check for target folder available quota when uploading 2020-11-17 13:55:21 +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