mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
Fix fallback extention for pdfa
This commit is contained in:
parent
7c79e1dd13
commit
1a16b7c8c4
@ -79,6 +79,11 @@ export const createFileFromResponse = (
|
||||
targetExtension: string
|
||||
): File => {
|
||||
const originalName = originalFileName.split('.')[0];
|
||||
|
||||
if (targetExtension == 'pdfa') {
|
||||
targetExtension = 'pdf';
|
||||
}
|
||||
|
||||
const fallbackFilename = `${originalName}_converted.${targetExtension}`;
|
||||
|
||||
return createFileFromApiResponse(responseData, headers, fallbackFilename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user