File Validators

File Validation Classes

Laminas comes with a set of classes for validating both files and uploaded files, such as file size validation and CRC checking.

Validation argument

All of the File validators' isValid() methods support both a file path string or a $_FILES array as the supplied argument. When a $_FILES array is passed in, the tmp_name is used for the file path.