MimeTypeHelper Class |
Namespace: CMS.Helpers
public static class MimeTypeHelper
The MimeTypeHelper type exposes the following members.
Name | Description | |
---|---|---|
AddRule |
Adds the conversion rule to the conversion tables.
| |
GetExtension |
Gets the extension by mime type.
| |
GetMimetype |
Gets the mimetype by extension.
| |
GetSafeMimeType |
Returns a MIME type for the given fileName.
If the fileName indicates an image, returns a common MIME type related to file's extension; otherwise the given contentType is returned.
|