mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-13 02:28:41 +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_ZMM = 'application/vnd.handheld-entertainment+xml';
|
||||
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