Development

#162 (Validator to validate FILES)

You must first sign up to be able to contribute.

Ticket #162 (closed enhancement: invalid)

Opened 8 years ago

Last modified 8 years ago

Validator to validate FILES

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

Description

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)..

Attachments

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:

file:

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