title: Image upload data empty
body: <p>Currently have these code.</p>
  
  <pre><code>    $config['upload_path'] = './uploads/';
                  $config['allowed_types'] = 'gif|jpg|png';
                  $config['max_size'] = '1000';
                  $config['max_width']  = '270';
                  $config['max_height']  = '280';
  $this-&gt;load-&gt;library('upload', $config);
  </code></pre>
  
  <p>Then ill insert the details into the database.</p>
  
  <pre><code>$this-&gt;Model-&gt;upload_image($this-&gt;upload-&gt;data(),$result_id);
  </code></pre>
  
  <p>But the db row is empty so i checked myself. I <code>print_r($image_data)</code> which is the first parameter of the model function. Still empty, to make sure even mor. i typed in.</p>
  
  <pre><code>print_r($this-&gt;upload-&gt;data());
  </code></pre>
  
  <p>Still, the results come out empty.</p>
  
  <blockquote>
    <p>Array ( [file_name] => [file_type] => [file_path] => ./uploads/
    [full_path] => ./uploads/ [raw_name] => [orig_name] => [client_name]
    => [file_ext] => [file_size] => [is_image] => [image_width] => [image_height] => [image_type] => [image_size_str] => )</p>
  </blockquote>
  
  <p>EDIT:</p>
  
  <pre><code>if ( ! $this-&gt;upload-&gt;do_upload())
              {
              $error = array('error' =&gt; $this-&gt;upload-&gt;display_errors());
              $this-&gt;load-&gt;view('view', $error);
              }
              else
              {
              $image_data = array('upload_data' =&gt; $this-&gt;upload-&gt;data());
              print_r($this-&gt;upload-&gt;data());
  }
  </code></pre>