[eluser]Unknown[/eluser]
Hi guys, i'm here to make a contribution to the CI libraries. I updated my upload.php library adding a new method that i needed, and maybe someone could need to.
Well, with this method you send a string as a parameter and it checks if that error was throwed by the do_upload() method. The code added is below:
/**
* Get the error status
*
* @param string
* @return bool
*/
public function get_error_status($msg = '')
{
$status = FALSE;
foreach ($this->error_msg as $val)
{
if($val == $msg){
$status = TRUE;
}
}
return $status;
}
I have made some other changes to another controllers and models but now i don't remember where. If i found them, i will post other contributions for the CI and the community.