hi to all, here is my issue(My ZF Version: 1.8.2):
#controller
if ($this->getRequest()->isPost()){
if (!$form->isValid($_POST))
$this->view->form = $form;
else{
SomeFunc::fileProcess($_FILES);
$values = $form->getValues(); //My form contains other
elements and works fine
..... // the rest handling code
}
}
#SomeFunc
if (!move_uploaded_file($file['tmp_name'],$file_dest)){
die("uploading file error");
}
The above code did work, it moved the uploaded file from temp dir to the
$file_dest. But I have to put the fileProcess() below the getValues(), and
here comes the problem, it die at "uploading file error". I am wondering if
getValues() did something to the $_FILES, thus my code is not working
anymore.
I've read the relationship between them, but still fill dizzy:
http://framework.zend.com/issues/browse/ZF-4590
http://framework.zend.com/issues/browse/ZF-4590
Any illumination? Thank you in advance.
--
View this message in context:
http://www.nabble.com/File-Upload---getValues%28%29-in-Zend_Form-tp25938077p25938077.html
Sent from the Zend Framework mailing list archive at Nabble.com.