Question : replace file upload codeigniter 3
Answered by : topandhi-omega
//You Should User $config['overwrite'] = TRUE;
$config['upload_path'] = './uploads/';
$config['overwrite'] = TRUE;
$this->load->library('upload', $config);
$this->upload->initialize($config);
Source : https://stackoverflow.com/questions/17575999/overwrite-previous-file-while-uploading-image-in-codeigniter | Last Update : Tue, 15 Nov 22