Caution
The documentation you are viewing is for an older version of this component.
Switch to the latest (v3) version.
File Validators
ExcludeExtension
Laminas\Validator\File\ExcludeExtension
checks the extension of files. It will
assert false
when a given file matches any of the defined extensions.
This validator is inversely related to the Extension validator; please refer to that validator for full options and usage examples.