$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 |