kamil pisze:
|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
|
I saw an note in manual
Note that even though setting the same filter multiple times is allowed,
doing so can lead to issues when using different options for the same
filter.
But for me this is a bug and in this case i can`t change multiple files
, you cant add the same filter with dirffent options to 2 diffrent files