Instead of adding multiple file elements, you can use a single file element for allowing the user to upload more than one file.
Using the FormData object to pass the selected files to the PHP for upload.
In this tutorial, I show how you can upload multiple files using Vue.js and PHP.
axios.min.js
with vue.js
.<script src="vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
#ajax #php #vue.js