mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-17 09:46:02 +00:00
fix: data wrapped inside blob
This commit is contained in:
parent
29852a44dd
commit
29a174bc22
@ -63,7 +63,13 @@ export async function convertAudio(
|
||||
const baseName = input.name.replace(/\.[^.]+$/, '');
|
||||
const convertedFileName = `${baseName}.${options.outputFormat}`;
|
||||
|
||||
return new File([data], convertedFileName, { type: mimeType });
|
||||
return new File(
|
||||
[new Blob([data as any], { type: mimeType })],
|
||||
convertedFileName,
|
||||
{
|
||||
type: mimeType
|
||||
}
|
||||
);
|
||||
} finally {
|
||||
// Clean up FFmpeg virtual filesystem
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user