ZF-11635: Zend_Filter_File_Rename does not keep the original filename if a target directory was provided
According to http://framework.zend.com/manual/en/…, when supplying a directory in the "source" argument (whether as an argument or inside an array), the original filename should be kept. However, it is not kept, and is saved with the following example's pattern: "phpX34d".
Calling $adapter->getFileName() inside the addition of the rename filter (in order to append the original file name to the directory) retrieves the entire path of where the file will be saved prior to the filtering (as the filter is not yet applied) which is something like "/tmp/originalFileName.jpg".
The above refers to a linux file system. Haven't checked this behavior under a Windows file system.