Are you wanting with or without axios? In my opinion, it'll be easier with axios. Otherwise you'll be using an XMLHttpRequest (XHR) in vanilla JavaScript which is ugly.
You'll need to remember to set the header variable "Content-Type" so the receiving server knows how to process your payload. Also, I am not sure what you are importing with that import FormData from "form-data"; line.
Are you wanting with or without axios? In my opinion, it'll be easier with axios. Otherwise you'll be using an XMLHttpRequest (XHR) in vanilla JavaScript which is ugly.
You'll need to remember to set the header variable "Content-Type" so the receiving server knows how to process your payload. Also, I am not sure what you are importing with that import FormData from "form-data"; line.