Click or drag to resize
MimeTypeHelper Class
Mime type helper.
Inheritance Hierarchy
SystemObject
  CMS.HelpersMimeTypeHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static class MimeTypeHelper

The MimeTypeHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddRule
Adds the conversion rule to the conversion tables.
Public methodStatic memberGetExtension
Gets the extension by mime type.
Public methodStatic memberGetMimetype
Gets the mimetype by extension.
Public methodStatic memberGetSafeMimeType
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.
Top
See Also