Well...
I may be blind, but looking at the manual and also at my blog I see 3
parameters.
Source, Target and Overwrite.
http://framework.zend.com/manual/en/zend.file.transfer.filters.html#zend.file.transfer.filters.rename
As your second parameter is no boolean he is used as target.
Which means all your source files are renamed to "1"... I dont really expect
that this works...
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "summertime" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, October 09, 2008 1:07 AM
Subject: Re: [fw-general] Zend_File_Transfer addFilter('Rename', ...
exceptions are on... and the validators do work ( see attached screen
capture
of error when I try to upload a pdf)
I got :
$upload->addFilter('Rename', '/var/www/gefanuc/web/files/newname.jpg', 1);
from
http://www.thomasweidner.com/flatpress/2008/09/07/destination-and-renaming-of-uploaded-files/
here . If I am missing a parameter, can you give me a hint as to what it
is?
If this is the wrong place to ask for help of this kind can you tell me
where I should place these posts?
--
View this message in context:
http://www.nabble.com/Zend_File_Transfer-addFilter%28%27Rename%27%2C-...-tp19886634p19889346.html
Sent from the Zend Framework mailing list archive at Nabble.com.