title: Problem with multiple uploading image
body: <p>I use codeigniter. I want multiple upload image, for this work, i use <code>library Multi_upload</code> and <code>jquery.MultiFile</code>.</p>
  
  <p>i have in output, this <code>Array ( [0] =&gt; [1] =&gt; [2] =&gt; ) no</code> => this is is from line 18 (<code>print_r($error);echo 'no';</code>) in the my code, and inserted to databse table this: <code>[]</code>(i want insert file name) . how can fix it?</p>
  
  <p>My Html: <code>http://pastebin.com/8YWJS2hy</code></p>
  
  <p>library Multi_upload: <code>http://pastebin.com/115ASstV</code></p>
  
  <p>jquery.MultiFile: <code>http://pastebin.com/0cyU8HvA</code></p>
  
  <p><strong>My Controller:</strong></p>
  
  <pre><code>function insert_data(){
      $config['upload_path']   = './uploads/'; // server directory
      $config['allowed_types'] = 'gif|jpg|png';
      $config['max_size']      = '512';
  
      $this-&gt;load-&gt;library('Multi_upload');
      $error = array();
      $data  = array();
      for ($i = 0; $i &lt; count($_FILES['userfile']['name']); $i++) {
          $this-&gt;upload-&gt;initialize($config);
          if (!$this-&gt;multi_upload-&gt;go_upload('userfile', $i)) {
              $error[] = $this-&gt;upload-&gt;display_errors();
          }
          $data[$i] = $this-&gt;multi_upload-&gt;go_upload();
          //gradually build up upload-&gt;data()
      }
  
      if (count($error) &gt; 0) {
          print_r($error); //Line 18
          echo 'no';
      } else {
          print_r($data);
          echo 'ok';
      }
  
      $data = array(
          //'name' =&gt; $this -&gt; input -&gt; post('name'),
          //'term' =&gt; $this -&gt; input -&gt; post('term'),
          'image' =&gt; json_encode($data)
      );
  
      $this-&gt;db-&gt;insert('table', $data);
  }
  </code></pre>