From cb87ac9a71da7fa9ae6dc90dd025c53045e9a843 Mon Sep 17 00:00:00 2001 From: palpa Date: Thu, 15 Sep 2016 22:51:01 -0300 Subject: [PATCH] fix issue #77 --- src/services/ng2-uploader.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/ng2-uploader.ts b/src/services/ng2-uploader.ts index ba00a0f0..4352440c 100644 --- a/src/services/ng2-uploader.ts +++ b/src/services/ng2-uploader.ts @@ -207,6 +207,7 @@ export class Ng2Uploader { } addFilesToQueue(files: File[]): void { + this.clearQueue(); files.forEach((file: File, i: number) => { if (this.isFile(file) && !this.inQueue(file)) { this._queue.push(file);