Be more forgiving if the mime type is not detected correctly.