[Vuejs]-How to post a form with Image and other kinds of input in Vue to API Laravel?

0πŸ‘

βœ…

To solve the issue I had to pass a formData, and use the property name="" in all my inputs.

before send the request by Axios I added the following code:

 const form = document.getElementById('form');
 const formdata = new FormData(form);

Leave a comment