Don't allow drop when file type isn't set
Fix js style
Add a list of allowed formats
Minor change
Minor change
Fix js style
Use indexOf instead of doing 2 loops