Answers for "send as form data with boundry axios"

0

send as form data with boundry axios

const form = new FormData();
form.append("form-field1", value1);
form.append("form-field2", value2);

const res = await axios.post({'http://www.yourserver.com/upload',
    form,
    headers: {
        'Content-Type': `multipart/form-data; boundary=${form._boundary}`,
    },
});
Posted by: Guest on April-24-2021

Code answers related to "send as form data with boundry axios"

Code answers related to "Javascript"

Browse Popular Code Answers by Language