Browse Source

Merge pull request #3822 from nextcloud/webui-upoad-no-mtime

dont preserve mtime when uploading trough the web interface
pull/3827/head
Robin Appelman 9 years ago
committed by GitHub
parent
commit
c1cf872f1d
  1. 5
      apps/files/js/file-upload.js

5
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) {

Loading…
Cancel
Save