title: how to upload multiple files with php to a 000webhost server?
body: <p>I'm making a simple site using html and php, this site is suposed to let me upload several files at the same time (Selecting them at once in the upload window which opens when I click on a 'select' button), my page already let me upload one file at once, my code is:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form action="php/cargaxml.php" method="POST" role="form" class="uploadForm" enctype="multipart/form-data" &gt;
       &lt;input type="file" name = "test" class = "file"&gt;
       &lt;input type="submit" value="Carga de archivos" id="boton" class = "btn btn-success btn-lg"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>cargaxml.php:</p>
  
  <pre><code>&lt;?php
     $target_path = "/public_html/uploads/carga";
     copy($_FILES['test']['tmp_name'], $target_path);
     echo "File successfully uploaded!";
  ?&gt;
  </code></pre>
  
  <p>When I want to upload a file I click on the button:</p>
  
  <p><a href="https://i.stack.imgur.com/Jqhwn.jpg" rel="nofollow noreferrer">Upload button</a></p>
  
  <p>and the browser shows a window to select a file:</p>
  
  <p><a href="https://i.stack.imgur.com/oLeQq.jpg" rel="nofollow noreferrer">Upload window</a></p>
  
  <p>but when I use ctrl+click to select several files it just unselect the previous file and let me use only one file, other way I've thought is to select a folder which contains several files and upload them in a massive way, but when I select a folder and click on open it just open the folder and doesn't let me to 'upload' the folder.</p>
  
  <p>How can I do to select several files to upload? My site is hosted on 000webhost.com. </p>
  
  <p>I apologise for my English (Isn't so well), thanks in advance:)</p>