Click or drag to resize
MimeTypeHelperGetExtension Method
Gets the extension by mime type.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static string GetExtension(
	string mimetype,
	string defaultValue = ""
)

Parameters

mimetype
Type: SystemString
Mimetype
defaultValue (Optional)
Type: SystemString
Default value when extension is not found

Return Value

Type: String
See Also