addFilter Rename ZendFramework
问题 i need to Rename a file with Zend_File_Transfer() only if new file match with old one in the server using some convention like newfile-1.ext where the -1 is the string that is added but Rename filter is strange, i really dont understand so good. For example, is necesary some like this: if(file_exists($file)){ $upload->addFilter('Rename', $file); } or Rename does it? thanks 回答1: Here is an example from one of my apps. File is recvieved by an Zend_Form $upload->receive(); $name = $upload-