To unset config while upload file in codeigniter use unset($config)
For example:
<?php $config['upload_path'] = './assets/file_banner'; $config['allowed_types'] = '*'; $this->load->library('upload', $config); $this->upload->do_upload('banner'); $file_banner = $this->upload->data(); unset($config); ?>
Question and answer is powered by AnsPress.io