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.


  1. Download & Include
  2. HTML
  3. PHP
  4. Script
  5. Output
  6. Conclusion

1. Download & Include

<script src="vue.js"></script>
<script src=""></script>

#ajax #php #vue.js

How to Upload Multiple Files with Vue.js and PHP
3.05 GEEK