Skip to content

Commit

Permalink
fix: fix check for dropped file extension (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
fo authored and jkuri committed Mar 21, 2017
1 parent 1b64d11 commit 199b4fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 199b4fe

Please sign in to comment.