Quote:
Originally Posted by MiK
1. How to set custom form enctype?
To handle file uploads i need to set it to 'multipart/form-data'. But i can't find anything to do such thing.. The only thing i know is that i should set some option(s) on the form decorator.
|
Whoops i didn't noticed the Zend_Form::setAttrib() method!
PHP Code:
$form = new Zend_Form();
$form->setAttrib('enctype', 'multipart/form-data');
This has done the trick
