It's not necessary to write multiple input fields in the form to upload multiple files, this way, with only one input also works:
<input type="file" name="nomfile[]" multiple>
It's not necessary to write multiple input fields in the form to upload multiple files, this way, with only one input also works:
<input type="file" name="nomfile[]" multiple>