Browse Source

dont preserve mtime when uploading trough the web interface

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/3822/head
Robin Appelman 9 years ago
parent
commit
ad4b5c82da
No known key found for this signature in database GPG Key ID: CBCA68FBAEBF98C9
  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