diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 8db23fca3b..c7174d3184 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -242,6 +242,10 @@ OC.FileUpload.prototype = { // TODO: if fails, it means same id already existed, need to retry } else { 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