web/workers: append type to outputted files

This commit is contained in:
jj
2025-05-04 19:00:56 +00:00
parent f655432376
commit b6a207a9b0
3 changed files with 6 additions and 9 deletions

View File

@@ -13,3 +13,7 @@ export function init(expectedSize?: number): Promise<AbstractStorage> {
throw "no storage method is available";
}
export function retype(file: File, type: string) {
return new File([ file ], file.name, { type });
}