mimetype detection when mimetype missed