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
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with
0 additions and
5 deletions
-
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) { |
|
|
|
|