title: $this->upload->do_upload(); not working
body: <pre><code>function do_upload(){//This is my controller//
      $config['upload_path'] = './uploads/';
      $config['allowed_types'] = 'gif|jpg|png';
      $config['overwrite'] = true; 
      //$config['max_size']   = '100';
      //$config['max_width']  = '1024';
      //$config['max_height']  = '768';
      $this-&gt;load-&gt;library('upload');
      $this-&gt;upload-&gt;initialize($config);
      $this-&gt;upload-&gt;do_upload();
      if (!$this-&gt;upload-&gt;do_upload()){//I also found out that this is the part that is not working
          echo "failed!";
      }
      else{
          $this-&gt;upload-&gt;data();
          echo "success!";
      }
  }
  </code></pre>
  
  <p>"I have tried some tutorials to make this work but nothing seems to work for this one"</p>