0 votes
563 views
in jQuery by

TypeError: ‘append’ called on an object that does not implement interface FormData.

$.ajax({
                   url: form.attr('action'),
                   type: 'POST',
                   dataTyte: 'json',
                   data: form_data,
                   enctype: 'multipart/form-data',
                      success : function(response) {
                          console.log("Uploaded");
                      }
                  }); 

I m getting the below error while executting the ajax call with FormData in above code.

TypeError: ‘append’ called on an object that does not implement interface FormData.

1 Answer

0 votes
by (2.8k points)

To resolved "TypeError: ‘append’ called on an object that does not implement interface FormData." error then add the following code in your ajax function:-

ajax:({

processData: false,

contentType: false,

},

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...