You need to iterate over the locations and add each one to the FormData.
May 11, 2018
7
Level 33
FormData becomes an object instead of array?
Hi,
In my app I'm sending form data and append it like this (in vue.js):
let form = new FormData();
form.append('locations[]', this.form.locations);
Then I send it with axios to the server.
The problem is that on my server I receive objects instead of an array.

When I send it without the FormData it looks like this:

How do I get the array data instead of objects?
Please or to participate in this conversation.