title: How to upload multiple images at once
body: <p>I want to upload many images at once.<br>
  I found a lot of questions and articles about this subject, but I still do not understand.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;?php echo form_open_multipart(base_url() . 'admin/news/addNews_processing') ?&gt;
  &lt;input type="file" name="image_upload[]" /&gt;
  &lt;input type="file" name="image_upload[]" /&gt;
  &lt;input type="file" name="image_upload[]" /&gt;
  &lt;input type="file" name="image_upload[]" /&gt;
  &lt;input type="file" name="image_upload[]" /&gt;
  &lt;?php echo form_close(); ?&gt;
  </code></pre>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$config['upload_path'] = FCPATH . "assets\uploads";
  $config['allowed_types'] = 'gif|jpg|jpeg|png';
  $config['max_size'] = '1024';
  $this-&gt;load-&gt;library('upload');
  foreach ($_FILES['image_upload']['name'] as $key =&gt; $value) {
      if (!empty($value))
          $this-&gt;upload-&gt;do_upload($value);
  }
  </code></pre>
  
  <p><strong>What is the error in the above code ?</strong></p>