get a file's MIME info