Skip to content

Commit

Permalink
dont preserve mtime when uploading trough the web interface
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Mar 13, 2017
1 parent 2a8e922 commit bd6ebe0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

var userName = this.uploader.filesClient.getUserName();
var password = this.uploader.filesClient.getPassword();
if (userName) {
Expand Down

0 comments on commit bd6ebe0

Please sign in to comment.