mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: putPdfFile to always include file extension
This commit is contained in:
@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user