Closed ahmed-aliraqi closed 3 years ago
Thank you for amazing plugin, When you sending form-data with array value it will not working correctly, so I suggest to map it before sending, see the following example:
data() { return { form: new Form({ users: [ {name: "", email: ""}, {name: "", email: ""}, ] }) } } ... onSubmit() { let form; this.form.users.forEach((user, index) => { form[`users[${index}][name]`] = user.name; form[`users[${index}][email]`] = user.email; }); }
There is no need for such thing. Arrays will be sent correctly.
Thank you for amazing plugin, When you sending form-data with array value it will not working correctly, so I suggest to map it before sending, see the following example: