Why is my upload path invalid? (Codeigniter-Library)
问题 I'm creating a library as part of a project and one of the methods is a wrapper for the upload helper. The method: public function upload(){ echo "Doing upload"; $config['upload_path']= RESOURCE_PATH . "Downloads"; $config['allowed_types']='pdf|doc'; $config['max_size']='10000'; //echo $config['upload_path']; $this->CI->load->library('upload',$config); if(!$this->CI->upload->do_upload()){ echo "Couldn't do the upload"; echo $this->CI->upload->display_errors(); echo $config['upload_path']; }