【发布时间】:2014-12-23 00:00:53
【问题描述】:
我在使用 ZF 上传文件时遇到问题。 这是我的应用结构:
//application
//images
index.php
//library
//styles
//public
//img
index.php中的应用路径好像没问题:
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
当我尝试上传文件时,我收到一条消息(这样的目录不存在)。
这是我的控制器代码 sn-p:
$upload->setDestination(APPLICATION_PATH . '../public/img/');
有人可以帮忙吗?
【问题讨论】:
标签: file zend-framework upload path