Skip to content

Kirby 4.4.1

$file->match()

Runs a set of validations on the file object (mainly for images).

$file->match(array $rules): bool

Parameters

Name Type Default
$rules * array

Return type

bool

Exceptions

Type Description
Kirby\Exception\Exception

Parent class

Kirby\Filesystem\File