[eluser]chefnelone[/eluser]
I attached: application/libraries/Upload.php
I wrapped my changes with '//ADDED' (useful to make a search to spot modifications from original class)
And here part of the method that fire the Upload class:
Code:
function upload_photos(){
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = '1024';
$config['max_width'] = '1200';
$config['max_height'] = '1200';
$config['min_width'] = '800';
$config['min_height'] = '600';
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload() )
{
$error = array('error' => $this->upload->display_errors());
$errores ='';
foreach($error as $value){
$errores .= $value;
}
/* $this->firephp->log( $errores ); */
echo $errores;
$procesoCompleto = FALSE;
}
else
{
//do something else.
}
}
I'm using firePhp, then I can get any data in the controller, just in case it helps...