Cancel only not allready uploaded files
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
3504990708
commit
040b5b8c4d
@ -109,7 +109,10 @@ export class ResumableFileUploadService implements OnDestroy{
|
||||
};
|
||||
|
||||
doClose = function () {
|
||||
this.uploadService.control({action:'cancelAll'});
|
||||
var toCancel = this.files.filter((f) => !f.success);
|
||||
toCancel.forEach(f => {
|
||||
this.uploadService.control({action:'cancel',uploadId:f.identifier});
|
||||
});
|
||||
this.files = new Array<File>();
|
||||
this.isClosed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user