|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
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
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
: [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
it seem that each validation for the file elements in the zend_form would
validate all of the file elements in the form.it means that if there have
two file elements in the form,says A and B. So isValid() for the element A
is called,it would validate A and B,not just A.
So if i want to upload two
://www.thomasweidner.com
- Original Message - From: Jacky Chen [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Friday, September 19, 2008 8:47 AM
Subject: [fw-general] Bug with Zend_File_Transfer
it seem that each validation for the file elements in the zend_form would
validate all of the file
Hi there,
there is a bug in the Zend_File_Transfer_Abstract::setOptions() , the code
in the setOptions() as bellow:
if (is_array($options)) {
$this-_options += $options;
}
Maybe the following code should it be:
if (is_array($options)) {
$this-_options = $options + $this-_options;
No, actually it should not.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: Jacky Chen [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Thursday, September 11, 2008 9:32 AM
Subject: [fw-general] Bug