Example #1
0
 public static string GetMimeType(string ext)
 {
     return(Mime.GetMimeType(ext));
 }
Example #2
0
 public static string GetMimeType(FileInfo file)
 {
     return(Mime.GetMimeType(file.Extension.ToLower().Substring(1)));
 }