fix: putPdfFile to always include file extension

This commit is contained in:
Mythie
2024-12-02 22:06:53 +11:00
parent 4326e27a2a
commit f27d0f342c
4 changed files with 17 additions and 7 deletions

View File

@ -33,6 +33,10 @@ export const putPdfFile = async (file: File) => {
});
}
if (!file.name.endsWith('.pdf')) {
file.name = `${file.name}.pdf`;
}
const { type, data } = await putFile(file);
return await createDocumentData({ type, data });