MimeTypeHelperGetMimetype Method |
Gets the mimetype by extension.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax 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:
StringSee Also