Reference

Guide

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 Description
$file string
$mime string null
$extension string null

Return type

string|null

Source code

kirby/src/Toolkit/Mime.php#L119