Skip to content

Commit

Permalink
fix: also add X-OC-Mtime header to final chunks move
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jan 9, 2024
1 parent 9c8566d commit 6c5f023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
})
Expand Down

0 comments on commit 6c5f023

Please sign in to comment.