Welcome Guest, Not a member yet? Register   Sign In
Error when trying to upload image
#3

[eluser]PermanaJ[/eluser]
Do you mean $this->upload->do_upload('file_input_name') ? Yes I provide file input name ...

some of my code :
Code:
if($this->input->post('my_photo')){
if($this->upload->do_upload('my_photo') == false){
  $upload_error = $this->upload->display_errors();
  $this->data['message'] = '<div class="error">'.strip_tags($upload_error).'</div>';
  $this->template->display('form/addproduct', $this->data);
  return false;
}else{
  $photo = $this->upload->data();
  $this->data['content'] = '<div class="success">'.$photo.'</div>';
  }
}

...
$person['name']    = $this->input->post('name');
$person['address']= $this->input->post('address');
$person['phone']= $this->input->post('phone');
...


Messages In This Thread
Error when trying to upload image - by El Forum - 03-25-2009, 05:09 AM
Error when trying to upload image - by El Forum - 03-25-2009, 07:01 AM
Error when trying to upload image - by El Forum - 03-25-2009, 09:08 AM
Error when trying to upload image - by El Forum - 03-25-2009, 09:25 AM
Error when trying to upload image - by El Forum - 03-25-2009, 09:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB