aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-04 08:44:57 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-10-04 08:44:57 +0200
commitd59151025366d11e3baa7fd16c2d987ba5a227a6 (patch)
tree0bda16530ed93da59642619ddcf2268d649d165e /apps/files/js/file-upload.js
parentd79e26b25a4a5f3e692439d9ab913f0e078a7785 (diff)
downloadnextcloud-server-d59151025366d11e3baa7fd16c2d987ba5a227a6.tar.gz
nextcloud-server-d59151025366d11e3baa7fd16c2d987ba5a227a6.zip
fix(files): legacy humanFileSize tests
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 61bd53eb35f..0301c1fe6ac 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -1063,8 +1063,8 @@ OC.Uploader.prototype = _.extend({
data.textStatus = 'notenoughspace';
data.errorThrown = t('files',
'Not enough free space, you are uploading {size1} but only {size2} is left', {
- 'size1': OC.Util.humanFileSize(selection.totalBytes),
- 'size2': OC.Util.humanFileSize(freeSpace)
+ 'size1': OC.Util.humanFileSize(selection.totalBytes, false, false),
+ 'size2': OC.Util.humanFileSize(freeSpace, false, false)
});
}
@@ -1302,9 +1302,9 @@ OC.Uploader.prototype = _.extend({
}
self._setProgressBarText(h, h, t('files', '{loadedSize} of {totalSize} ({bitrate})' , {
- loadedSize: OC.Util.humanFileSize(data.loaded),
- totalSize: OC.Util.humanFileSize(total),
- bitrate: OC.Util.humanFileSize(smoothBitrate / 8) + '/s'
+ loadedSize: OC.Util.humanFileSize(data.loaded, false, false),
+ totalSize: OC.Util.humanFileSize(total, false, false),
+ bitrate: OC.Util.humanFileSize(smoothBitrate / 8, false, false) + '/s'
}));
self._setProgressBarValue(progress);
self.trigger('progressall', e, data);