mirror of
https://github.com/zhigang1992/firebase-tools.git
synced 2026-01-12 17:22:36 +08:00
fix: prevent crash in cases when file not uploaded
This commit is contained in:
@@ -200,7 +200,7 @@ export class StorageLayer {
|
||||
return undefined;
|
||||
}
|
||||
upload.status = UploadStatus.CANCELLED;
|
||||
this._persistence.deleteFile(upload.fileLocation);
|
||||
this._persistence.deleteFile(upload.fileLocation, true);
|
||||
}
|
||||
|
||||
public uploadBytes(uploadId: string, bytes: Buffer): ResumableUpload | undefined {
|
||||
|
||||
Reference in New Issue
Block a user