remove the file after extract local blob url

This commit is contained in:
Salem Yaslem 2023-07-21 20:26:38 +03:00
parent 0a5c42cb11
commit 0edcdd3faa

View File

@ -159,7 +159,8 @@ export class SevenZipManager {
const blob = new Blob([buffer as unknown as Uint8Array], { type: mime.getType(file.extension!) || "application/octet-stream" }); const blob = new Blob([buffer as unknown as Uint8Array], { type: mime.getType(file.extension!) || "application/octet-stream" });
const blobUrl = URL.createObjectURL(blob); const blobUrl = URL.createObjectURL(blob);
// this.sevenZip.FS.unlink(file.path.substring(1)); // remove the file after extract local blob url
this.sevenZip.FS.unlink(file.path.substring(1));
return blobUrl; return blobUrl;
} }