better check of mime types when uploading files via ajax
Merge pull request #1372 from conejoninja/ajax-up-ext

better check of mime types when uploading files via ajax