From a122d6703d79550f3e2c5a420abfbb73dd9aed59 Mon Sep 17 00:00:00 2001 From: Ben Sgroi Date: Fri, 12 Feb 2016 11:14:59 -0800 Subject: [PATCH] Effective default queue limit of 0 If you don't set the queueLimit manually, then it's undefined, so the queueLimitFilter never allows any files by default. I modified the filter to ignore the queueLimit if it's undefined. --- components/file-upload/file-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/file-upload/file-uploader.ts b/components/file-upload/file-uploader.ts index e0ce563..820c613 100644 --- a/components/file-upload/file-uploader.ts +++ b/components/file-upload/file-uploader.ts @@ -225,7 +225,7 @@ export class FileUploader { } private _queueLimitFilter() { - return this.queue.length < this.queueLimit; + return this.queueLimit === undefined || this.queue.length < this.queueLimit; } private _isValidFile(file:any, filters:any, options:any) {