Check for mime type and not extension