inspect file to gather the mime type