If you are using Codeigniter and Get file upload path in Codeigniter then follow this example code:
<?php function file_upload(){ $config['upload_path'] = './assets/backend/uploads/images/'; $config['allowed_types'] = '*'; $this->load->library('upload', $config); if ($this->upload->do_upload('image_input_file_name')){ $data = $this->upload->data(); $image_file_path=$data['full_path']; }else{ $error = array('error' => $this->upload->display_errors()); $image_file_path="Empty path"; } } ?>
if this example code will be helpful for you.
Question and answer is powered by AnsPress.io