Take a look at the example within the framework and take a look into the
manual.
You are not trying to get the progress. From where ever you got your code...
this can not work this way... never ever...
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "kennpetri" <[email protected]>
To: <[email protected]>
Sent: Friday, June 11, 2010 10:15 PM
Subject: [fw-general] Progressive upload not working
I have the following code in an upload action:
public function uploadAction()
{
$adapter = new Zend_File_Transfer_Adapter_Http();
$adapter->setDestination('C:\temp');
$adapter->receive();
$upload = $adapter->getProgress($adapter);
Zend_Registry::get('logger')->info("upload progress message is " .
$upload['message']);
Zend_Registry::get('logger')->info("upload progress message is " .
$upload['done']);
while (!$upload['done']) {
$upload = $adapter->getProgress($upload);
Zend_Registry::get('logger')->info("upload progress message is " .
$upload['message']);
}
$this->view->message = $upload['message'];
}
Note that the logging is set up in my Bootstrap.php. I'm using it here
just
to get some info back.
I can upload a file and it is received in the directory specified in
setDestination.
On the file/upload view I get the following output:
------------
Failure while retrieving the upload progress
Notice: Undefined variable: call in C:\Program
Files\Zend\ZendServer\share\ZendFramework\library\Zend\File\Transfer\Adapter\Http.php
on line 369
------------
PHPINFO tells me that APC is enabled. Or at least it says that I have an
"additional module" called "APC."
I've been beating my head against this thing for many hours. Any guidance
is
most appreciated.
I'm running the latest developer version of ZendServer on Windows.
Thanks!
ken
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Progressive-upload-not-working-tp2252238p2252238.html
Sent from the Zend Framework mailing list archive at Nabble.com.