You are not logged in.
Pages: 1
I have a form with a file field, press SEND and when loading the controller for the recovery of field can not retrieve the file field why?
$request = $this->getRequest();
$result = $request->getPost();
Zend_Debug::dump($result);
//where file field???Offline
you need to setup the form to accept multiple mimetypes:
$form = new Zend_Form();
$form->setAttrib('enctype', 'multipart/form-data');
also, if I remember correctly, getPost(); will not include stuff from the $_FILES PHP namespace. You can get around this with a little hack though:
$_POST = array_merge($_POST, $_FILES);
or just access $_FILES directly
Offline
Pages: 1