mirror of
https://github.com/imputnet/cobalt.git
synced 2026-03-10 16:19:56 +00:00
web/workers: append type to outputted files
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user