我无法设置setDestination()
在 zend 框架中上传文件的功能的路径。
当我使用如下路径时,我的文件已成功上传:
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->setDestination("C:/");
但实际上我想upload_folder
在 zend 框架的公共目录中的目录中上传一个文件。我试过我的代码:
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->setDestination($this->view->baseUrl()."/upload_folder/");
但文件没有上传到上述路径目录中。
谁能帮我?如何设置文件上传的路径Project_Directory/public/upload_folder
?