Class MimeHelper
Provides useful helper methods for resolving mime-types from common formats.
public static class MimeHelper
- Inheritance
-
MimeHelper
- Inherited Members
Properties
- DefaultMimeType
Gets or sets the MimeHelper default fallback mime-type.
Methods
- GetMimeType(string, string?)
Gets the content mime-type from the specified file extension.
- IsBrowserKnownInlineMimeType(string)
Determines whether the specified mime-type is considered an inline content type that can be displayed directly in the browser.
- IsPlainTextFile(string)
Gets an boolean indicating if the specified file is an well-known plain text file.