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 pathstring
or a$_FILES
array as the supplied argument. When a$_FILES
array is passed in, thetmp_name
is used for the file path.
Found a mistake or want to contribute to the documentation? Edit this page on GitHub!