Tuesday, August 7, 2012

Image upload validation using MeioUpload

I'm using MeioUpload to store images.. and it's working fine except the validation on the form - specifically checking that a filename has been set to upload.

When the submit button is pressed, the correct error message will be displayed if the file is of wrong type, but it wont error if the filename has not been set. I've tried the model validation rules, but that doesn't work as is, since the field (file details) are passed as an array. Looking in the meio_upload.php file, I can see that there's a 'validations' array option, and some validations listed below it, yet I haven't been able to figure out how to get it to work.

Any suggestions? Thanks in advance!

Clint

CakePHP v1.3
MeioUpload v2.1

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate