add type detection when file upload
Merge branch 'master' of https://github.com/BraindeadCrew/hosta