send as form data with boundry axios code example
Example: 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}`,
},
});