Código PHP:
Ver original$config['upload_path'] = 'public/uploads/document/';
$config['allowed_types'] = 'pdf';
$config['max_size'] = '3072';
$this->load->library('upload', $config);
if($this->upload->do_upload()) {
return $this->upload->data();
}
return $this->upload->display_errors();
Algo bien simple ...