The file is no longer there when you call your instance of Zend_File.

getValues() already uploads the file and any setting done after this call, or even in a second transfer object like seen in your code, are of course ignored because there is no file which can be uploaded. It is already uploaded to the directory specified before.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "venkatadry" <[email protected]>
To: <[email protected]>
Sent: Thursday, March 18, 2010 8:22 AM
Subject: [fw-general] Re: File upload problem:(



iam using zend frame work 1.10 here iam using the following code for file
upload
the file is uploading into tmp but not the target location which i have
given in the set destination location plz help me out of this problem
public function uploadAction()
   {
       // action body
$up = new Application_Form_Fuldf();
$this->view->form = $up;
    $a = $up->getvalues(file1);

if($this->getRequest()->isPost()) {
if($up->isValid($_POST)) {
$upload = new Zend_File_Transfer_Adapter_Http();
    $fileup = $_SERVER['DOCUMENT_ROOT'].'/fileupload/';
     $upload->setDestination($fileup);

   }


--
View this message in context: http://n4.nabble.com/File-upload-problem-tp663743p1597611.html Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to