I just learn to save image data to database, those are filename and path. The path is appear on database, but not with filename. Whats the problem?
This is the controller,
function do_upload() { $config['upload_path']='./uploads/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '100'; $config['max_width'] = '1024'; $config['max_height'] = '768'; $this->load->library('upload', $config); $this->upload_model->upload($config); if(!$this->upload->do_upload()){ $error = array('error' => $this->upload->display_errors()); $this->load->view('upload_form', $error); } else { $data = array('upload_data' => $this->upload->data()); $this->load->view('upload_success', $data); } } and the model
function upload ($config) { $config = $this->upload->data(); $upload_data = array( 'path' => $config['full_path'], 'nama_foto' => $config['file_name'] ); $this->db->insert('tb_picture', $upload_data); } and the table 
what should i do?
thank you before.
var_dump($config)to check what's actually in that array.$configvariable have property[full_path]? well, I guess no because you insert it in to database before actual file upload happens.