Apply filter when add file to queue #43

Merged
HLaiveling merged 2 commits from master into master 2016-02-03 16:33:56 +00:00
Showing only changes of commit bfba51cd93 - Show all commits

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