Details
Description
In 1.8.0 Beta you would get the original filename in the getNewName function, in the 1.8.0 release it was changed to the temporary name.
So currently we have extended the Zend_Filter_File_Rename because we want to apply our own naming scheme to the uploaded files, But we still need to know the original files extension to do this. Before we got the original filename and could use that, now we get the temporary name, which on Windows includes a .tmp extension and on linux doesn't have an extension at all.
At the point where the function get's called (in the Zend_Transfer_Adapter_Http line 163) the $this->_files property hasn't been set yet. We could do it in a hackish way and get the information from $_FILES, but I much rather have all the information available to the function at that point.
According to API the getNetName() returns the new name of a filtered file without moving it.
It's an undocumented internal method and a preparation for an improvement of this filter.
Another point is, that Zend_Filter_File_Rename does not know about original, new or old names.
This informations are stored within Zend_File_Transfer.
To get the old name simply call getFileName() BEFORE calling getValues() or receive().
Calling it afterwards return the new set filename.
The filter is definetly the wrong point to get file informations.