aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-03-13 15:48:59 +0100
committerGitHub <noreply@github.com>2017-03-13 15:48:59 +0100
commitc1cf872f1d99a614bf9d070d1923b78e3e2e26fb (patch)
tree6b5fb13dadf994bbfcf92601f5e828db414af639 /apps
parent308e8bb5ecbc54759f10b132442065cdabf26610 (diff)
parentad4b5c82da52a373780f9a98f7b9759febfa2dac (diff)
downloadnextcloud-server-c1cf872f1d99a614bf9d070d1923b78e3e2e26fb.tar.gz
nextcloud-server-c1cf872f1d99a614bf9d070d1923b78e3e2e26fb.zip
Merge pull request #3822 from nextcloud/webui-upoad-no-mtime
dont preserve mtime when uploading trough the web interface
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/file-upload.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 6f9fd9aafea..2b28380e0b0 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -220,11 +220,6 @@ OC.FileUpload.prototype = {
this.data.headers['If-None-Match'] = '*';
}
- if (file.lastModified) {
- // preserve timestamp
- this.data.headers['X-OC-Mtime'] = (file.lastModified / 1000).toFixed(0);
- }
-
var userName = this.uploader.filesClient.getUserName();
var password = this.uploader.filesClient.getPassword();
if (userName) {