Ejemplo n.º 1
0
 public static String GetMime(String extension)
 {
     extension = extension.Replace(".", "");
     extension = extension.ToLower();
     if (MimeTypes.Count(obj => obj.Key == extension) == 1)
     {
         return(MimeTypes.FirstOrDefault(obj => obj.Key == extension).Value);
     }
     return("text/plain");
 }