diff --git a/package.json b/package.json index c55bd234..85d6bcbb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ngx-uploader", "description": "Angular File Uploader", - "version": "2.2.4", + "version": "2.2.5", "license": "MIT", "main": "bundle/ngx-uploader.umd.js", "module": "ngx-uploader.js", diff --git a/src/directives/ng-file-drop.ts b/src/directives/ng-file-drop.ts index 37912aed..7d0b8060 100644 --- a/src/directives/ng-file-drop.ts +++ b/src/directives/ng-file-drop.ts @@ -100,7 +100,7 @@ export class NgFileDropDirective implements OnChanges, OnInit { } let ext = f.name.split('.').pop(); - if (ext && allowedExtensions.indexOf(ext) !== -1 ) { + if (ext && allowedExtensions.indexOf(ext.toLowerCase()) !== -1 ) { return true; }