diff --git a/System/MimeType.php b/System/MimeType.php index 9553c1723..8bb7a38d0 100644 --- a/System/MimeType.php +++ b/System/MimeType.php @@ -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); + } }