Restart input stream on retried request

This commit is contained in:
Fedor Indutny 2024-07-11 12:04:48 -07:00 committed by GitHub
parent 328117cecf
commit 273e1ccb15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

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