From 6c5f023682af6961594cd09a457cd7a47196fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Tue, 9 Jan 2024 19:05:57 +0100 Subject: [PATCH] fix: also add `X-OC-Mtime` header to final chunks move MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- lib/uploader.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/uploader.ts b/lib/uploader.ts index aa465215..4c7b6636 100644 --- a/lib/uploader.ts +++ b/lib/uploader.ts @@ -242,6 +242,8 @@ export class Uploader { method: 'MOVE', url: `${tempUrl}/.file`, headers: { + 'X-OC-Mtime': file.lastModified / 1000, + 'OC-Total-Length': file.size, Destination: encodedDestinationFile, }, })