Revision #29 has been created by acorncom on Jul 8, 2013, 11:21:29 PM with the memo:
updated information on file validator
« previous (#28) next (#30) »
Changes
Title
unchanged
Reference: Model rules validation
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
Form validation, model, validation, reference, validation rules, validator
Content
changed
[...]
4. **minSize**, the minimum number of bytes required for the uploaded file. *(null, meaning no limit)*
5. **tooLarge**, the error message used when the uploaded file is too large.
6. **tooMany**, the error message used if the count of multiple uploads exceeds limit.
7. **tooSmall**, the error message used when the uploaded file is too small.
8. **types**, a list of file name extensions that are allowed to be uploaded. *(null, meaning all extensions)*
9. **wrongType**, the error message used when the uploaded file has an extension name that is not listed among extensions.
10. **mimeTypes**, a list of MIME-types of the file that are allowed to be uploaded. *(requires fileinfo PHP extension)*
11. **wrongMimeType**, the error message used when the uploaded file has a MIME-type that is not listed among mimeTypes.
### `filter` : [CFilterValidator][...]
* [CUniqueValidator]
* [CUnsafeValidator]
* [CUrlValidator]