From 7f8beab9671726c52766cc12c8f83ff9963b3603 Mon Sep 17 00:00:00 2001 From: kukhariev Date: Mon, 1 Jul 2019 13:48:53 +0300 Subject: [PATCH] fix: directive not set concurrency --- src/uploadx/src/uploadx.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uploadx/src/uploadx.service.ts b/src/uploadx/src/uploadx.service.ts index ffe115c8..83c4a57f 100644 --- a/src/uploadx/src/uploadx.service.ts +++ b/src/uploadx/src/uploadx.service.ts @@ -71,6 +71,7 @@ export class UploadxService { */ handleFileList(fileList: FileList, options = {} as UploadxOptions): void { const instanceOptions = { ...this.options, ...options }; + this.options.concurrency = instanceOptions.concurrency; Array.from(fileList).forEach(file => this.addUploaderInstance(file, instanceOptions)); this.autoUploadFiles(); }