开发者

Zend_File_Transfer_Http How to set uploaded file name

开发者 https://www.devze.com 2023-02-08 16:32 出处:网络
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

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号