Merge pull request #17857 from nextcloud/backport/17847/stable16
[stable16] Also set X-OC-Mtime header for files that are smaller than 10MB
This commit is contained in:
commit
a2c2389dd4
|
@ -242,6 +242,10 @@ OC.FileUpload.prototype = {
|
||||||
// TODO: if fails, it means same id already existed, need to retry
|
// TODO: if fails, it means same id already existed, need to retry
|
||||||
} else {
|
} else {
|
||||||
chunkFolderPromise = $.Deferred().resolve().promise();
|
chunkFolderPromise = $.Deferred().resolve().promise();
|
||||||
|
var mtime = this.getFile().lastModified;
|
||||||
|
if (mtime) {
|
||||||
|
data.headers['X-OC-Mtime'] = mtime / 1000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait for creation of the required directory before uploading
|
// wait for creation of the required directory before uploading
|
||||||
|
|
Loading…
Reference in New Issue