From 6fca55d43a335a156ecdc4e4940bdcbf63fd46d0 Mon Sep 17 00:00:00 2001 From: arohilaGL <112551534+arohilaGL@users.noreply.github.com> Date: Fri, 14 Oct 2022 20:40:03 +0530 Subject: [PATCH] [ACA-4608] Fix for User can't upload a file whose upload was previously canceled (#7869) --- lib/core/src/lib/services/upload.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/src/lib/services/upload.service.ts b/lib/core/src/lib/services/upload.service.ts index 42cf2bc543..492be8afe8 100644 --- a/lib/core/src/lib/services/upload.service.ts +++ b/lib/core/src/lib/services/upload.service.ts @@ -180,8 +180,9 @@ export class UploadService { if (promise) { if (this.isSaveToAbortFile(file)) { promise.abort(); + } else { + this.abortedFile = file.name; } - this.abortedFile = file.name; delete this.cache[file.name]; promise.next(); } else {