*) Attach the rename filter BEFORE calling getValues().
or
*) Don't call getValues() to get the file
or
*) Disable value within the file element
Generally you might be interested in this blog note:
http://www.thomasweidner.com/flatpress/2009/04/17/recieving-files-with-zend_form_element_file/
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Ehask71" <[email protected]>
To: <[email protected]>
Sent: Friday, April 17, 2009 4:49 PM
Subject: Re: [fw-general] Zend_File_Transfer_Adapter_Http() Rename Filter
issue
thomasW wrote:
As noted in the FAQ you are calling getValues() on the file element.
As the file itself is the value of the file element within ZF, this means
that you receive the file by calling getValues().
All the code below getValues() will never get executed as there is no
file
anymore to receive.
And as you have not added a rename filter before that call, the original
file will be received unrenamed.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
Hmmmmm I hate to have to do a 2 step process As I name the images with
the
application ID which is the lastInsertid() from the query before the Image
inserts.
Is there another way to get the filtered values without breaking my file
naming??
Thx again Thomas for your help
Eric
--
View this message in context:
http://www.nabble.com/Zend_File_Transfer_Adapter_Http%28%29-Rename-Filter-issue-tp21823191p23099175.html
Sent from the Zend Framework mailing list archive at Nabble.com.