title: The upload path does not appear to be valid”. Codeigniter file upload
body: <pre><code>        $config['upload_path'] = './uploads/';
          $config['allowed_types'] = 'doc|docx';
          $config['max_size'] = '400';
          $config['max_width']  = '1024';
          $config['max_height']  = '768';
  
      $this-&gt;load-&gt;library('upload', $config);
  
      if ( ! $this-&gt;upload-&gt;do_upload())
      {
          $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
  
          $this-&gt;load-&gt;view('upload_form', $error);
      }
      else
      {
          $data = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
  
    $this-&gt;referral_model-&gt;postCVReferralInfo($m_id, $emp_id , $job_id, $name, $age , $gender,$country_id, $mobile, $email, $summary, $workExp, $education, $qualification, $offer, $sb_id);
      header('location:'.$this-&gt;config-&gt;base_url().'index.php/member/referSuccess');
  
      exit;
  
  
  
      } ` 
  </code></pre>
  
  <p>If I try to upload the doc file then I'm getting this error "The upload path does not appear to be valid". I replaced the path to absolute Path then also I am getting this error.
  please suggest me how I can resolve the issue.`</p>