use library function to get the MIME type of a file