plik ASP.NET Wykryj typ MIME
var mimeType = MimeMapping.GetMimeMapping(fileName);
Lazar
var mimeType = MimeMapping.GetMimeMapping(fileName);