title: Multi-upload images by html5
body: <p>How can multi-upload images by <code>html5</code> and <code>js</code> and <code>php</code>, Please give me a demo or example?</p>
  
  <p><strong>Without using a plugin</strong></p>
  
  <p>I try as this code in html and selected multi image:</p>
  
  <pre><code>&lt;input type="file" name="upload[]" multiple="multiple"&gt;
  </code></pre>
  
  <p>But i give in php code just one image:</p>
  
  <pre><code>foreach( $_FILES['upload'] as $key =&gt; $all ){
              foreach( $all as $i =&gt; $val ){
                  $new[$i][$key] = $val;    
              }    
          }
          echo '&lt;pre&gt;';
          print_r($new);
  </code></pre>
  
  <p>What do i do?</p>