diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2017-08-10 12:23:20 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-12-15 14:46:48 +0100 |
commit | f39de4ab375740469581809140e6dd01941e4ce1 (patch) | |
tree | e7272f977cd6d572b8f89572f13230ff544f47c7 /apps/files/js | |
parent | 74df27b7a756d948e6df94cda3fda9585ae78f7c (diff) | |
download | nextcloud-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.js | 5 |
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 + } ); }, |