title: Upload problem in CodeIgniter
body: <p>I am getting this error: </p>
  
  <blockquote>
    <p>The upload destination folder does not appear to be writable.</p>
  </blockquote>
  
  <p>But <code>is_dir</code> and <code>is_writable</code> both return true. </p>
  
  <pre><code>$config['upload_path'] = './work_order_doc/';
  $config['allowed_types'] = 'gif|jpg|png';
  $config['max_size']= '100';
  $config['max_width']  = '1024';
  $config['max_height']  = '768';
  $this-&gt;load-&gt;library('upload', $config);
  $work_order_file="work_order_file";
  
  var_dump(is_dir($config['upload_path']));
  var_dump(is_writable($config['upload_path']));
  
  
  
  if ( ! $this-&gt;upload-&gt;do_upload($work_order_file))
     {
       $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
       print_r($error);
       $temp="";
       }
  else
   {
     $upload_data = $this-&gt;upload-&gt;data();
     echo $temp=$upload_data['file_name'];
  }
  </code></pre>