Latest news
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

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...