Thomas Weidner pisze:
Just to note...
Your reproduction example can impossibly work.
It throws an exception at initiation.
Greetings
Thomas Weidner
----- Original Message ----- From: "kamil" <luznyg...@poczta.onet.pl>
To: <fw-general@lists.zend.com>
Sent: Thursday, January 29, 2009 1:56 PM
Subject: [fw-general] Bug in Zend_File_transfer
|For example
$upload = new Zend_File_Transfer();
$||upload ||->setDestination('some path')
$upload->addFilter('Rename', 'C:\new\n1', 'file1')
->addFilter('Rename', 'C:\new\w1', 'file2');
This is only example but only works one the last filter
I have problem adding the same filter and propably validator to two
diffrent files want work
beacuse there will be used only the last filter
There is in code a bug
$this->_filters[$class] = $filter; on line 683 in
zend_file_adpter_abstract
and for validators will be the same
or i am doing something wrong
sorry for english
|
try this ,, maybe i did somthing wrong , now i dont have this code ,
because i did this by my way
$adapter = new Zend_File_Transfer_Adapter_Http(array('ignoreNoFile' => true));
$adapter->setDestination(Zend_Registry::get('config')->files)
$adapter->addFilter('Rename', array('target' =>
Zend_Registry::get('config')->files.'note_'.$id,'overwrite' => true), 'note')
->addFilter('Rename', array('target' =>
Zend_Registry::get('config')->files.'terms_'.$id,'overwrite' => true), 'terms');