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