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
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
);
}