Hi Pete,

So far my findings are as follows

In Zend_File_Transfer_Adapter_Http line 163 contains following code

                    $filename = $rename->getNewName($content['tmp_name']);

as you can see only temp file name is sent to the filter, there is nothing much 
I can do here based on the original filename sent by the user. For what I want 
to implement I have to change both Zend_File_Transfer_Adapter_Http and a custom 
filter.

I think I would upload the file and rename is directly from the code using a 
filter or something within the controller.

Thanks anyway.


From: Peter Warnock 
Sent: Tuesday, July 21, 2009 2:06 AM
To: Muhammad Ali 
Subject: Re: [fw-general] Zend_Form_Element_File and random files name


I haven't done it, but I would think extending the bfilter class with a custom 
implementation would do the trick. - pw


  On Jul 20, 2009 6:04 PM, "Muhammad Ali" <[email protected]> wrote:


  Hi Pete,

  Thanks for that, but there is no option to ignore extension i.e. so that 
extension are taken care of  as for now you I can set new file name to time() 
but it don't seems to keep the extension. Or do i have to do my own filter for 
this purpose?

  Thanks


  From: Peter Warnock 
  Sent: Tuesday, July 21, 2009 12:38 AM
  To: Muhammad Ali 
  Subject: Re: [fw-general] Zend_Form_Element_File and random files name
  Take a look at 
http://framework.zend.com/manual/en/zend.file.transfer.filters.html#zend.file.trans...

Reply via email to