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.
This commit is contained in:
HLaiveling
2016-02-03 11:28:16 -05:00
parent e766e52c46
commit bfba51cd93

View File

@@ -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);