Skip to content

Commit

Permalink
Merge pull request #3822 from nextcloud/webui-upoad-no-mtime
Browse files Browse the repository at this point in the history
dont preserve mtime when uploading trough the web interface
  • Loading branch information
icewind1991 authored Mar 13, 2017
2 parents 308e8bb + ad4b5c8 commit c1cf872
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).toFixed(0);
}

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

0 comments on commit c1cf872

Please sign in to comment.