File Validators
File Validation Classes
Zend Framework comes with a set of classes for validating both files and uploaded files, such as file size validation and CRC checking.
- Count
 - crc32
 - ExcludeExtension
 - ExcludeMimeType
 - Exists
 - Extension
 - FilesSize
 - Hash
 - ImageSize
 - IsCompressed
 - IsImage
 - Md5
 - MimeType
 - NotExists
 - Sha1
 - Size
 - Upload
 - UploadFile
 - WordCount
 
Validation argument
All of the File validators'
isValid()methods support both a file pathstringor a$_FILESarray as the supplied argument. When a$_FILESarray is passed in, thetmp_nameis used for the file path.
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!