summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2017-08-10 12:23:20 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-12-15 14:46:48 +0100
commitf39de4ab375740469581809140e6dd01941e4ce1 (patch)
treee7272f977cd6d572b8f89572f13230ff544f47c7 /apps/files/js
parent74df27b7a756d948e6df94cda3fda9585ae78f7c (diff)
downloadnextcloud-server-f39de4ab375740469581809140e6dd01941e4ce1.tar.gz
nextcloud-server-f39de4ab375740469581809140e6dd01941e4ce1.zip
Transmit OC-Total-Length in browser as well
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index d1730fa7bc7..1586aa3324f 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -264,7 +264,10 @@ OC.FileUpload.prototype = {
'uploads/' + encodeURIComponent(uid) + '/' + encodeURIComponent(this.getId()) + '/.file',
'files/' + encodeURIComponent(uid) + '/' + OC.joinPaths(this.getFullPath(), this.getFileName()),
true,
- {'X-OC-Mtime': this.getFile().lastModified / 1000}
+ {
+ 'X-OC-Mtime': this.getFile().lastModified / 1000,
+ 'OC-Total-Length': this.getFile().size
+ }
);
},