title: codeigniter file upload failure
body: <p>Can't upload file. <code>$this-&gt;upload-&gt;do_upload('anonsphoto');</code> returns <code>false</code>. Can't find out why. </p>
  
  <p>I added upload library to autoload this way: <code>$autoload['libraries'] = array('upload');</code></p>
  
  <p>Here is my view:</p>
  
  <pre><code>&lt;?php
  echo form_open_multipart('InterviewController/saveInterview');
  
  $anons_data = array(
      'name'        =&gt; 'anons',
      'id'          =&gt; 'anons_area',
      'value'       =&gt; 'Введите анонс'
  );
  echo form_textarea($anons_data); ?&gt;
  
  &lt;p&gt;Картинка анонса&lt;/p&gt;
  &lt;?php
  echo form_upload('anonsphoto'); ?&gt;
  </code></pre>
  
  <p>Here is controller which uploads file:</p>
  
  <pre><code>public function saveInterview() {
      $config['upload_path'] = '/application/upload/';
      $config['allowed_types'] = 'gif|jpg|png';
      $config['max_size'] = '10000';
      $config['file_name'] = 'img_' . (string) time();
      $this-&gt;upload-&gt;initialize($config);
  
      $this-&gt;upload-&gt;do_upload('anonsphoto');
      return;
  }
  </code></pre>
  
  <p>Uploading file is 3 kb sized png file. I can't understand why do_upload is returning false. Any ideas?</p>