Skip to content

Kirby 4.2.0

Mime::type()

Returns the MIME type of a file

Mime::type(string $file, ?string $extension = null): string|null

Parameters

Name Type Default
$file * string
$extension string|null null

Return type

string|null

Parent class

Kirby\Filesystem\Mime