#162 (Validator to validate FILES)

You must first sign up to be able to contribute.

Ticket #162 (closed enhancement: invalid)

Opened 11 years ago

Last modified 11 years ago

Validator to validate FILES

Reported by: anonymous Assigned to:
Priority: major Milestone:
Component: Version:
Keywords: Cc:


In addition to GET and POST validation, it'd be handy to have some sort of support for $_FILES validation in the validator .yml files. From here, you can pass it off to a custom validator to get specific error messages (using the PHP error codes)..


bberror1.sbl (35 bytes) - added by anonymous on 02/20/06 11:18:42.
company_logo.png (10.4 kB) - added by anonymous on 02/20/06 11:19:46.

Change History

02/20/06 11:18:42 changed by anonymous

  • attachment bberror1.sbl added.

02/20/06 11:19:46 changed by anonymous

  • attachment company_logo.png added.

02/26/06 17:55:42 changed by fabien

  • status changed from new to closed.
  • resolution set to invalid.

You can validate file with the .yml. Just add a file: yes parameter to your validator:


required: yes required_msg: The file cannot be left blank file: yes validators: uploadFileValidator