mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-04 03:38:42 +00:00
add default mime
This commit is contained in:
parent
86d3c10b05
commit
36c8d6ac5d
|
|
@ -1019,4 +1019,14 @@ abstract class MimeType extends Enum
|
||||||
public const M_ZIRZ = 'application/vnd.zul';
|
public const M_ZIRZ = 'application/vnd.zul';
|
||||||
public const M_ZMM = 'application/vnd.handheld-entertainment+xml';
|
public const M_ZMM = 'application/vnd.handheld-entertainment+xml';
|
||||||
public const M_123 = 'application/vnd.lotus-1-2-3';
|
public const M_123 = 'application/vnd.lotus-1-2-3';
|
||||||
|
|
||||||
|
/** {@inheritdoc} */
|
||||||
|
public static function getByName(string $name)
|
||||||
|
{
|
||||||
|
if (!self::isValidName($name)) {
|
||||||
|
return 'application/octet-stream';
|
||||||
|
}
|
||||||
|
|
||||||
|
return \constant('self::' . $name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user