Difference between #28 and #29 of
Reference: Model rules validation

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]

 
99 0
114 followers
Viewed: 891 785 times
Version: 1.1
Category: How-tos
Written by: krillzip
Last updated by: Rodrigo
Created on: Nov 29, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history