ajax formdata : Illegal invocation ajax formdata : Illegal invocation ajax ajax

ajax formdata : Illegal invocation


jQuery tries to transform your FormData object to a string, add this to your $.ajax call:

processData: false,contentType: false


it occurs sometime when jquery internally not serialize data correctly data to fix it add this.

cache : false,dataType    : 'json',processData : false,


I have solved the issue just by adding following these:

contentType: false,processData: false,cache: false,