From bb20ffff584f86d301d081cd908744af595f91f5 Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 16 Sep 2019 16:58:57 +0200 Subject: [PATCH] Fix resumableupload issue --- .../resumable-file-upload/resumable-file-upload.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/common/src/lib/components/resumable-file-upload/resumable-file-upload.service.ts b/projects/common/src/lib/components/resumable-file-upload/resumable-file-upload.service.ts index 42b8936..390df73 100644 --- a/projects/common/src/lib/components/resumable-file-upload/resumable-file-upload.service.ts +++ b/projects/common/src/lib/components/resumable-file-upload/resumable-file-upload.service.ts @@ -53,7 +53,7 @@ export class ResumableFileUploadService implements OnDestroy{ handleState(state:UploadState) { switch(state.status) { - case "added": { + case "queue": { this.files.push(new File(state)); this.isClosed=false; };break; @@ -70,8 +70,8 @@ export class ResumableFileUploadService implements OnDestroy{ var parts = state.url.split("/"); file.itemCode = parts[parts.length-1]; file.progress = (state.progress?state.progress:0); + file.success=true; } - file.success=true; };break; case "error": { var file =this.files.find((f) => f.identifier == state.uploadId )