我想给出webroot之外的文件路径,如何给出?
$uploads_dir = WWW_ROOT .'/uploads';
$tmp_name = $this->data["Image"]["filedata"]["tmp_name"];
$name = $this->data["Image"]["filedata"]["name"];
move_uploaded_file($tmp_name, "$uploads_dir/$name");