Skip to content
Advertisement

Send data to server using Axios VueJs

It is necessary to send data to the server in the required format, I don’t understand how to organize it correctly, the same JSON structure. You must send when attaching a file (@change), the file itself and a comment. Here is what I was able to do https://codepen.io/JessikaJes/pen/rNvgYwP

JavaScript

Advertisement

Answer

Change the code like this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement