JeremyFagis / dropify

Override your input files with style — Demo here : http://jeremyfagis.github.io/dropify
MIT License
974 stars 399 forks source link

Change getFileType function to fix issue #98 #99

Open murilobr opened 5 years ago

murilobr commented 5 years ago

Fix getFileType function to extract file extension in a signed url.

refs #98

shranet commented 4 years ago

Your change will return "gif" for "filename.jpg?a=1.2.gif". I think the final code would be:

return this.file.name.split(/\#|\?/).shift().split('.').pop().toLowerCase();