Answers for "formdata appen array of strings"

0

formdata appen array of strings

let barArray = [{item: 'one'}, {item: 'two'}];

let data = FormData();

data.append('foo', JSON.stringify(barArray))

this.$inertia.post('/upload', data);
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language