Image upload with Codeigniter

1) Create upload.php file inside controller, copy and past the following code into. Also create an ‘uploads’ folder inside the codeigniter root folder. <?php //Author: Jamshid HASHIMI class Upload extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper(‘form’); $this->load->helper(‘url’); } function index() { $this->load->view(‘upload_view’); } //Upload Image function function uploadImage() { $config[‘upload_path’] = “uploads/”; $config[‘allowed_types’] = …