aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-03-13 13:19:41 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-13 13:33:18 +0100
commitad4b5c82da52a373780f9a98f7b9759febfa2dac (patch)
tree2273edd70e46add524c857e71bd50529d0b5966d /apps/files/js/file-upload.js
parent4395cf4fa77b07da9a31b85997f781dee03da21b (diff)
downloadnextcloud-server-ad4b5c82da52a373780f9a98f7b9759febfa2dac.tar.gz
nextcloud-server-ad4b5c82da52a373780f9a98f7b9759febfa2dac.zip
dont preserve mtime when uploading trough the web interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/js/file-upload.js')
-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) {