CI 묻고 답하기

제목 파일 업로드..라이브러리...왜 이럴까요...ㅠㅠ
글쓴이 은랑 작성시각 2013/12/27 16:37:21
댓글 : 3 추천 : 0 스크랩 : 0 조회수 : 12095   RSS

   $p01_PersonalPhoth  = $_FILES['userfile']['name'];

   $config['upload_path']  = './uploadFiles/';
   $config['allowed_types'] = 'gif|jpg|png|jpeg';
   $config['file_name']  = $this->input->post('p01_id')."_".uniqid();
   $config['remove_spaces'] = true;  
   $config['max_size']   = '100';
   $config['max_width']   = '1024';
   $config['max_height']   = '768';
  
   $this->load->library('upload', $config);
   
   $this->upload->do_upload( $config['file_name'] );


A PHP Error was encountered

Severity: Notice

Message: Undefined property: Personal_info::$upload

Filename: controllers/personal_info.php

Line Number: 246


Fatal error: Call to a member function do_upload() on a non-object in /home/demo/public_html/application/controllers/personal_info.php on line 246

과히 특별히 잘못한것이 없는듯 한데...왜...ㅠㅠ

도와주세요...ㅠㅠ
 다음글 force_download() 문의드립니다. (3)
 이전글 ci포럼 소스 초보 질문 드립니다.. (2)

댓글

은랑 / 2013/12/27 16:37:58 / 추천 0
왜 upload object 가 없을까요...분명 로딩 했는데...ㅠㅠ
은랑 / 2013/12/27 16:43:16 / 추천 0
autoloading 하니 되긴 하는데...이상하네욤..--;;;;

SOS 입니다...ㅠㅠ
에카 / 2013/12/31 01:30:03 / 추천 0
do_upload쪽이 잘못되신것같은데요. 메뉴얼을 다시한번 봐보세요