Skip to content

Kirby 6.0.0

$fileValidators->validateUpload()

Validates the uploaded file against the general file rules as well as the accept settings of the file blueprint

$fileValidators->validateUpload(File $upload): void

Parameters

Name Type Default
$uploadrequired Kirby\Filesystem\File no default value

Parent class

Kirby\Guards\FileValidators