Skip to content

Commit

Permalink
Merge pull request #1 from murilobr/issue-#98
Browse files Browse the repository at this point in the history
Change getFileType function to fix issue JeremyFagis#98
  • Loading branch information
jmadureira authored Sep 22, 2019
2 parents 27feaf9 + 043df33 commit b2e960c
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 b2e960c

Please sign in to comment.