Check for bad MIME type when uploading a file.