I m getting the below error while executting the ajax call with FormData
TypeError: ‘append’ called on an object that does not implement interface FormData.
Present code Looks like as below
1 2 3 4 5 6 7 8 |
var formObj = $('#addTeacherForm'); var formData = new FormData(formObj[0]); $.ajax({ url: 'chkExistTeacherData', async: true, type: "POST", data: formData, dataType: "html", |
Solution:Please add the below lines of code in the ajax request
processData: false