Skip to content

Kirby 4.5.0

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