Answers for "app.min.js:1 Uncaught (in promise) TypeError: Illegal invocation"

4

TypeError: Illegal invocation

Your datatype is not JSON, it’s a FormData. And for jQuery to send a FormData, it needs…
$.ajax({
    type: "POST",
    url: 'signin2.php',
    data: formData,
    processData: false, //add this
    contentType: false, //and this
})
Posted by: Guest on January-27-2021
0

jquery-3.4.1.min.js:2 Uncaught (in promise) TypeError: Illegal invocation

var form = $('#AddPersonnelForm')[0];
var frmData = new FormData(form);



processData: false,
contentType: false,
Posted by: Guest on March-09-2021

Code answers related to "app.min.js:1 Uncaught (in promise) TypeError: Illegal invocation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language