Click or drag to resize
MimeTypeHelperGetMimetype Method (String, String)
Gets the mimetype by extension.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetMimetype(
	string extension,
	string defaultValue
)

Parameters

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

Return Value

Type: String
See Also