Skip to content

Commit

Permalink
Change getFileType function to fix issue JeremyFagis#98
Browse files Browse the repository at this point in the history
  • Loading branch information
murilobr committed Jan 23, 2019
1 parent 27feaf9 commit 043df33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/dropify.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Dropify.prototype.isTouchDevice = function()
*/
Dropify.prototype.getFileType = function()
{
return this.file.name.split('.').pop().toLowerCase();
return this.file.name.split('.').pop().split(/\#|\?/).shift().toLowerCase();
};

/**
Expand Down

0 comments on commit 043df33

Please sign in to comment.