Skip to content

Kirby 4.4.1

Mime::fromExtension()

Guesses a MIME type by extension

Mime::fromExtension(string $extension): string|null

Parameters

Name Type Default
$extension * string

Return type

string|null

Parent class

Kirby\Filesystem\Mime