[eluser]KaMiii[/eluser]
I've made some progress,
got a small doubt, how do i save the file with the temp_name instead of the file name ?
$_FILES['userfile']['name'] = $value['name'][$s];
$_FILES['userfile']['type'] = $value['type'][$s];
$_FILES['userfile']['tmp_name'] = $value['tmp_name'][$s];
$_FILES['userfile']['error'] = $value['error'][$s];
$_FILES['userfile']['size'] = $value['size'][$s];
$config['upload_path'] = './uploads/produtos/';
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = '300';
$config['max_width'] = '1000';
$config['max_height'] = '1000';
$this->load->library('upload', $config);
$this->upload->do_upload();
$data = $this->upload->data();