title: image upload with codeigniter
body: <p>Am having difficulties uploading images with codeigniter it keeps saying that i didn't select a file to upload.</p>
  
  <p>this is my code</p>
  
  <pre><code>function do_upload()
  {
      $config['upload_path'] = './uploads/';
      $config['allowed_types'] = 'jpg|png';
      $config['max_size'] = '3000';
      $config['max_width']  = '1024';
      $config['max_height']  = '768';
  
      $this-&gt;load-&gt;library('upload', $config);
  
      if (!$this-&gt;upload-&gt;do_upload()){
          echo $this-&gt;upload-&gt;display_errors();
      }else{
          echo $this-&gt;upload-&gt;data();
      }
  }
  </code></pre>
  
  <p>it doesn't even send the image to the directory.</p>