don't allow users to upload files that don't match the paths extension
ignore case
more robust file uploading
Merge pull request #839 from dimagi/mediaaaa

don't allow users to upload files that don't match the paths extension