Skip to content

Kirby 4.4.1

F::extensionToMime()

Converts a file extension to a mime type

F::extensionToMime(string $extension): string|null

Parameters

Name Type Default
$extension * string

Return type

string|null

Parent class

Kirby\Filesystem\F