image upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: image upload (/showthread.php?tid=33615) |
image upload - El Forum - 09-01-2010 [eluser]sree777[/eluser] While uploadg image its showg error.. image upload - El Forum - 09-01-2010 [eluser]Nick_MyShuitings[/eluser] you're going to need to be a lot more detailed then that. I'm only responding cuz I am bored/its late/and the push to live is taking a while. Give some examples of the error, and of the code that produced it. image upload - El Forum - 09-01-2010 [eluser]sree777[/eluser] if($this->input->post('id')){ $this->load->helper('form'); $this->load->model('member_model'); $data['id'] = $this->input->post('id'); $data['query'] = $this->member_model->entry_add(); $config['upload_path'] = 'uploads/'; $config['allowed_types'] = 'gif|jpg|jpeg|png'; $config['max_size'] = '1000'; $config['max_width'] = '1920'; $config['max_height'] = '1280'; $this->load->library('upload', $config); if(!$this->upload->do_upload()) echo ""; //echo $this->upload->display_errors(); else { $fInfo = $this->upload->data(); //echo '<pre>'; print_r($fInfo); echo '</pre>'; $fInfo['file_name']; $this->_createThumbnail($fInfo['file_name']); $data['uploadInfo'] = $fInfo; $data['thumbnail_name'] = $fInfo['raw_name'] . '_thumb' . $fInfo['file_ext']; //$this->load->view('view_1', $data); } $this->load->view('formsubmit',$data); } } image upload - El Forum - 09-01-2010 [eluser]Nick_MyShuitings[/eluser] what is the error you are getting? and if you can add some comments into the code that would help us understand what the model call entry_add() is supposed to do... for example image upload - El Forum - 09-01-2010 [eluser]sree777[/eluser] View <?php $Fdata = array('name' => 'mem_photo', 'class' => 'file'); echo form_upload($Fdata);?> The problm s the value n the file upload (view page) s not gettg n the model page |