Home » CodeIgniter » 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);
}

Leave a Reply

x

Check Also

Download failed.: SSL certificate problem, verify that the CA cert is OK

Follow the simple steps to recover from the above wordpress upgrade error step 1 .Create ...