mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
lib/storage: always return files
This commit is contained in:
parent
9a9b9a6dfc
commit
f655432376
@ -48,7 +48,7 @@ export class MemoryStorage extends AbstractStorage {
|
||||
}
|
||||
}
|
||||
|
||||
return new Blob(outputView);
|
||||
return new File(outputView, crypto.randomUUID());
|
||||
}
|
||||
|
||||
#expand(size: number) {
|
||||
|
@ -7,8 +7,7 @@ export abstract class AbstractStorage {
|
||||
return false;
|
||||
}
|
||||
|
||||
abstract res(): Promise<Blob>;
|
||||
abstract res(): Promise<File>;
|
||||
abstract write(data: Uint8Array | Int8Array, offset: number): Promise<number>;
|
||||
abstract destroy(): Promise<void>;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user