From bfba51cd9354b80bd2b43af103f045be78343f19 Mon Sep 17 00:00:00 2001 From: HLaiveling Date: Wed, 3 Feb 2016 11:28:16 -0500 Subject: [PATCH] Update file-uploader.ts Filters were not being used when adding a file to the queue. Updated to pass in arrayOfFilters instead of an empty array. --- 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 58d16e3..e0ce563 100644 --- a/components/file-upload/file-uploader.ts +++ b/components/file-upload/file-uploader.ts @@ -44,7 +44,7 @@ export class FileUploader { list.map(some => { let temp = new FileLikeObject(some); - if (this._isValidFile(temp, [], options)) { + if (this._isValidFile(temp, arrayOfFilters, options)) { let fileItem = new FileItem(this, some, options); addedFileItems.push(fileItem); this.queue.push(fileItem);