Asp.net File Detect Mime Type

var mimeType = MimeMapping.GetMimeMapping(fileName);
Lazar