Detect the mime type for files rather than using the browser provided input.