[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);
}
}