Skip to content

Kirby 3.6.6

FileRules::validFilename()

Validates the filename

FileRules::validFilename(Kirby\Cms\File $file, string $filename): bool

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

Parent class

Kirby\Cms\FileRules