diff --git a/src/directives/ng-file-select.ts b/src/directives/ng-file-select.ts index 64af1eaa..3be57745 100644 --- a/src/directives/ng-file-select.ts +++ b/src/directives/ng-file-select.ts @@ -83,7 +83,7 @@ export class NgFileSelectDirective implements OnChanges { } let ext = f.name.split('.').pop(); - if (ext && allowedExtensions.indexOf(ext) !== -1 ) { + if (ext && allowedExtensions.indexOf(ext.toLowerCase()) !== -1 ) { return true; }