My file is uploading, and being error checked, but it's not being renamed but
I can't figure out why:

$upload = new Zend_File_Transfer_Adapter_Http();
$upload->addValidator('FilesSize', array('3kB', '4MB'));
$upload->addValidator('Extension',  array('gif', 'jpg'));

$upload->setDestination('/var/www/gefanuc/web/files');
$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);
                        
if (!$upload->receive()) {
   $messages = $upload->getMessages();
   echo implode("\n", $messages);
}


when I print out the $upload array I can see that my filter is set up right,
but my file never gets renamed. What an I missing
-- 
View this message in context: 
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19886634.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to