Skip to content

Kirby 4.5.0

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