Skip to content

Kirby 6.0.0

$fileValidators->validateUploadWithSameType()

Validates an uploaded replacement file, which must match the MIME type or extension of the file it replaces

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

Parameters

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

Parent class

Kirby\Guards\FileValidators