Click or drag to resize
MimeTypeHelperGetMimetype Method
Gets the mimetype by extension.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static string GetMimetype(
	string extension,
	string defaultValue = "application/octet-stream"
)

Parameters

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

Return Value

Type: String
See Also