check mime-type