nextcloud-server/apps/files/js
Daniel Calviño Sánchez fc2069c1dd 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-23 18:53:01 +01:00
..
dist Bump core-js from 3.8.0 to 3.8.1 2020-12-15 07:54:33 +00:00
templates
app.js Expose currently active file list though OCA.Files.App 2020-08-25 22:42:44 +02:00
breadcrumb.js
detailfileinfoview.js
detailsview.js
detailtabview.js
favoritesfilelist.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
favoritesplugin.js
file-upload.js Fix total upload size overwritten by next upload 2020-12-23 18:53:01 +01:00
fileactions.js Clarify wording to 'Leave this share', fix #18622 2020-08-23 23:58:38 +02:00
fileactionsmenu.js refactor: fileActions.getCurrentDefaultFileAction() 2020-04-08 18:19:58 +02:00
fileinfomodel.js
filelist.js Check for target folder available quota when uploading 2020-11-17 09:43:44 +01:00
filemultiselectmenu.js
files.js add mount point to quota warning message 2020-10-04 11:02:32 +02:00
filesummary.js
gotoplugin.js
jquery-visibility.js
jquery.fileupload.js
keyboardshortcuts.js
mainfileinfodetailview.js
merged-index.json Remove outdated legacy search scripts 2020-08-04 20:56:22 +02:00
navigation.js
newfilemenu.js
operationprogressbar.js
recentfilelist.js Use DOMContentLoaded and fix sharebymail loading issue 2020-07-20 12:42:08 +02:00
recentplugin.js
semaphore.js
sidebarpreviewmanager.js
sidebarpreviewtext.js
tagsplugin.js
templates.js
upload.js