title: I am facing issue in moving file into my desired folder
body: <p>i need to move my file into my desired location but my file is not getting moved to folder so please help me.</p>
  
  <pre><code>   Here is the code of my controller "Sms_Controller".       
  
      $pic_file1 = $this-&gt;input-&gt;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-&gt;load-&gt;library('upload', $config);
  
          if ( ! $this-&gt;upload-&gt;do_upload('pic_file')){
              $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
              $this-&gt;load-&gt;view('reg_dsa', $error);
          }else{
  
              //file is uploaded successfully
              //now get the file uploaded data 
              $upload_data = $this-&gt;upload-&gt;data();
  
              //get the uploaded file name
  
  
          }
  </code></pre>