Zend_File_Transfer_Http How to set uploaded file name
how to开发者_JS百科 set a new random name for the uploaded file directly using Zend_File_Transfer_Http?
You should try to use a Filter for example:
$adapter= new Zend_File_Transfer_Adapter_Http();
$adapter->addFilter('Rename',array('target' => $SERVER["DOCUMENT_ROOT"] . '/uploadedfiles/whatevername.jpg'));
$adapter->receive();
精彩评论