Resumable v2 uploads

This commit is contained in:
Fedor Indutny 2024-07-16 19:25:07 -07:00 committed by GitHub
parent 72c6fa8884
commit 57f7dc1b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 78 additions and 18 deletions

View file

@ -148,7 +148,8 @@ export async function uploadFile({
});
} else {
await server.putEncryptedAttachment(
() => createReadStream(absoluteCiphertextPath),
(start, end) => createReadStream(absoluteCiphertextPath, { start, end }),
ciphertextFileSize,
uploadForm
);
}