V
V
Vadim Rublev2020-12-13 17:24:52
JavaScript
Vadim Rublev, 2020-12-13 17:24:52

How to send form data by POST request from “IE 11”?

What is the correct way to send form data by POST request from "IE 11"?
Sending with AJAX, serializing with FormData() function -

let formData = new FormData(document.querySelector('#id_Form'));
.
Emptiness on the server comes from the "donkey". Other browsers send data normally.
Tried to add different headers -
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
and 'form/multipart'- does not help. :(

Or any better "IE" ideas for working with FormData()?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question