我想更改上传文件名。下面是我写的代码:
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->setDestination(IMAGE_PHY_PATH);
try {
//upload received file(s)
$upload->addFilter('Rename', array('target' => IMAGE_PHY_PATH."1.jpg",
'overwrite' => true));
$upload->receive();
} catch (Zend_File_Transfer_Exception $e) {
$e->getMessage();
}
谁能告诉我我的代码有什么问题?