I getting error while uploading csv file to live server. But it was working fine in same setup on localhost. Same code is working with jpg format.
ERROR-: The filetype you are attempting to upload is not allowed.
Controller-:
$config['upload_path'] = './assets/uploads/csv_importing/';
$config['allowed_types'] = 'csv|jpg';
$this->load->library('upload', $config);
// If upload failed, display error
if (!$this->upload->do_upload()) {
$this->session->set_flashdata('success', $this->upload->display_errors());
redirect('admin/import_user_csv');
} else {
echo "file uploaded";
die();
}