Validation file upload CakePHP
- by kicaj
How validate file upload in CakePHP?
When i wrote some like this:var $validate = array(
'file' => array(
'select' => array(
'rule' => array('selectFile', false),
'message' => 'There is no file!'),
'type' => array(
'rule' => array('typeFile'),
'message' => 'Bad type!'),
'size' => array(
'rule' => array('sizeFile'),
'message' => 'Bad with size!')));
Works only with the last validate, here 'size'.
Maybe You know solution, for validation for files with many messages?