Skip to content

Kirby 4.4.1

Mime::fix()

Fixes an invalid MIME type guess for the given file

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

Parameters

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

Return type

string|null

Parent class

Kirby\Filesystem\Mime