php - Zend Framework 1.7 to 1.8 Exception caught by form Method getMaxFileSize does not exist -
what cause error message "exception caught form method getmaxfilesize not exist"
after switching 1.7 version 1.8 or more
update: issue produced code
->addelement('file', 'avatar', array( 'required' => false , 'label' => 'upload file:' , 'destination' => '/data/avatar' , 'filters' => array() , 'validators' => array( array('extension', false, 'jpg,png,gif') , array('size', false, 102400) , array('count', false, 1) ) , 'decorators' => $this->groupelementdecorators ))
update2: group decorators array
$groupelementdecorators = array( 'viewhelper', 'formelements', 'file', 'errors');
according issue, must using following.
'validators' => array( array('size', false, array('min' => '3', 'max' => '9')) )
Comments
Post a Comment