FileRules::validMime()
Validates the MIME type
Parameters
Name | Type | Default |
---|---|---|
$file * | Kirby\Cms\File |
– |
$mime | string |null |
null |
Return type
bool
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the MIME type is missing or forbidden |