Example #1
0
        protected static string DetermineContentType(string filename)
        {
            var extension = IoHelper.GetExtension(filename);

            if (string.IsNullOrEmpty(extension))
            {
                return("x-application/unknown");
            }

            return(MimeTypes.GetTypeByExtenstion(extension));
        }