determine the mime type of source file by file name