Monday, April 2, 2012

Re: picture virus problem!!!!!

 It is because I quoted your text..

------------

To solve your problem, you must validate your uploads.

<?php public $validate = array(     'image' => array(         'extension' => array(         'rule'    => array('extension', array('gif', 'jpeg', 'png', 'jpg')),         'message' => 'Please supply a valid image.'       )      ),
 );


Create custom validation

http://book.cakephp.org/2.0/en/models/data-validation.html#adding-your-own-validation-methods

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

No comments: