| 제목 | 멀티파일 업로드 질문입니다 | ||
|---|---|---|---|
| 글쓴이 | 초보개.발. | 작성시각 | 2013/03/19 16:05:44 | 
|  | |||
| 초보 개발자입니다 ㅠㅠ php 입문한지 얼마 대지도않아서 ㅠㅠ 많이 헤매고있네요.. $this -> load -> library('upload'); $this -> load -> model('admin_model'); $field_name = 'projectImage_upload'; if ($field_name1 == 'projectImage_upload') {  $config['upload_path'] = './upload/project_image';  $config['allowed_types'] = 'gif|jpg|png';  $config['max_size'] = '1024';  $config['max_width'] = '2048';  $config['max_height'] = '1300';  $this -> upload -> initialize($config); } if (!$this -> upload -> do_upload($field_name)) {  $data_project = array('upload_data_project' => NULL);  $error = array('error' => $this -> upload -> display_errors()); } else {  $data_project = array('upload_data_project' => $this -> upload -> data()); } 이런식으로 컨트롤러를 짰구요.. <form method="POST" name = "frm" action = "<?=site_url('admin/board_save_write'); ?>" enctype="multipart/form-data" > 포스트방식으로 넘겨서 폼안에 <input type = "file" multiple name = "projectImage_upload[]"/> 이런식으로 file 을 설정해줬습니다.. multiple 로요.. 근데 실행해보면.,, 이런에러가.. 두둥... 나타나네요;;; 아마 file name 에 [] 이거때문이라고생각되는데.. 제 부족한 머리로는.. 도저히 해결방법이 떠오르질않아서요.. 많은분들 도움좀 부탁드려도 될런지요..... A PHP Error was encounteredSeverity: Notice Message: Array to string conversion Filename: libraries/Upload.php Line Number: 161 | |||
| 다음글 | ajax 요청인지 아닌지 판단하는 방법 (1) | ||
| 이전글 | view에서 foreach질문입니다. (4) | ||
| 
                                초보개.발.
                                /
                                2013/03/19 17:03:50 /
                                추천
                                0
                             | 
라이브러리 있더군요...
가져다가 쓰니까 바로 해결됩니다 ㅠㅠ
왜 몇시간동안 라이브러리 생각을 못했는지 ㅠㅠ