Open thc0309 opened 7 years ago
you are not asking the right question, you want to know how to send form-data requests. here is a code snippet
xhrTransport(data) {
let xhr = new XMLHttpRequest();
let formData = new FormData();
let field;
for (field in data)
formData.append(field, data[field])
xhr.open('POST', API_URL);
xhr.setRequestHeader('Authorization', localStorage.getItem(TOKEN_NAME));
xhr.send(formData);
}
Hi there. How can i submit without file uploader ?