From ad4b5c82da52a373780f9a98f7b9759febfa2dac Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 13 Mar 2017 13:19:41 +0100 Subject: dont preserve mtime when uploading trough the web interface Signed-off-by: Robin Appelman --- apps/files/js/file-upload.js | 5 ----- 1 file changed, 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) { -- cgit v1.2.3