How to print Codeigniter upload error

How to print Codeigniter upload error

if you want to display errors on upload functionality in codeigniter. Use the following function


if($this->upload->do_upload('image'))
{
$contentimagedata=$this->upload->data();
$descdata['image']=$contentimagedata['file_name'];
}else {
$error = array('error' => $this->upload->display_errors());
print_r($error);
}


smarttips

Leave a Reply

Advertisment ad adsense adlogger