Reference: Model rules validation

Comparing #28 with #29

Revision #29 was created by acorncom acorncom on Jul 8, 2013, 11:21:29 PM.

updated information on file validator

Content

[...]
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]