View Single Post
  #2 (permalink)  
Old 03-31-2008, 11:21 AM
MiK MiK is offline
Junior Member
 
Join Date: Mar 2008
Location: Ancona, Italy
Posts: 16
Send a message via MSN to MiK
Default

Quote:
Originally Posted by MiK View Post
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
Reply With Quote