开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜