Hi, 
actually I am using Zend_Filter_File_Rename to rename an uploaded file, but the 
renaming happens after the file is uploaded.
If you need old file not to be overwritten, Zend_Filter_File_Rename can be 
instanciated using an array of settings where you can specify 
to overwrite or not the existing file ( overwrite => false ).

Hope it helps

Sergio Rinaudo






> Date: Sat, 17 Jul 2010 12:11:01 -0700
> From: [email protected]
> To: [email protected]
> Subject: [fw-general] Re: Renaming file before upload
> 
> 
> Just to clarify a bit more...
> 
> I'm using Zend_Form_Element_File to add the file upload element to my form.
> I need to be able to rename the file before calling $form->foo->receive().
> Possible?
> -- 
> View this message in context: 
> http://zend-framework-community.634137.n4.nabble.com/Renaming-file-before-upload-tp2292597p2292617.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
                                          
_________________________________________________________________
Tanti account di posta? Unisci tutto sotto Hotmail
http://www.windowslive.it/hotmail/GestisciAltriAccount.aspx

Reply via email to