string fileName = "D:\myfile.txt"; var contentType = System.Web.MimeMapping.GetMimeMapping(fileName);
如果没有对应的MIME TYPE,将会返回:
application/octet-stream