How about switching on exceptions ??

Your validators do not work... missing an parameter.
Also your filter will not work... missing parameter.

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

----- Original Message ----- From: "summertime" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, October 08, 2008 10:11 PM
Subject: [fw-general] Zend_File_Transfer addFilter('Rename', ...



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