Answers for "uploading form data using axios to back end server such as node js"

0

uploading form data using axios to back end server such as node js

axios({
  method: "post",
  url: "myurl",
  data: bodyFormData,
  headers: { "Content-Type": "multipart/form-data" },
})
  .then(function (response) {
    //handle success
    console.log(response);
  })
  .catch(function (response) {
    //handle error
    console.log(response);
  });
Posted by: Guest on March-06-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language