public static function getTypeFromExtension(
        string $ext,
        string $default = "application/octet-stream"
    ): string
    {
        $ext = strtolower($ext);
        return self::$extensions[$ext] ?? $default;
    }