Мне нужно переместить мой файл в нужное место, но мой файл не перемещается в папку, поэтому, пожалуйста, помогите мне.
Here is the code of my controller "Sms_Controller".
$pic_file1 = $this->input->post('pic_file');
$pic_file1 = str_replace( "\\", '/', $pic_file1);
$filename = basename($pic_file1);
$config['upload_path'] = BASEPATH. '../assets/uploads/';
$config['allowed_types'] = 'gif|jpg|png';
$config['max_size'] = 1000;
$this->load->library('upload', $config);
if ( ! $this->upload->do_upload('pic_file')){
$error = array('error' => $this->upload->display_errors());
$this->load->view('reg_dsa', $error);
}else{
//file is uploaded successfully
//now get the file uploaded data
$upload_data = $this->upload->data();
//get the uploaded file name
}