12/06/09
ZF 1.8 Zend_Form automatically sets form encoding on upload
As of ZF 1.8 Zend_Form’s enctype defaults to multipart when a file element is attached. Prior to this version you have to do this manually like so:
$form->setAttrib('enctype', 'multipart/form-data'); //or $form->setAttrib('enctype', Zend_Form::ENCTYPE_MULTIPART);
Leave a Reply