diff --git a/src/directives/ng-file-select.ts b/src/directives/ng-file-select.ts index 5c27dd55..e3f8b4d6 100644 --- a/src/directives/ng-file-select.ts +++ b/src/directives/ng-file-select.ts @@ -67,7 +67,7 @@ export class NgFileSelectDirective implements OnChanges { } if (this.options.filterExtensions && this.options.allowedExtensions && this.files && this.files.length) { - this.files = this.files.filter(f => { + this.files = [].filter.call(this.files, f => { if (this.options.allowedExtensions.indexOf(f.type) !== -1) { return true; }