I submitted an ajax form as
var formData = new FormData();
formData.append('name', 'John');
formData.append('company', 'ABC');
$.ajax({
url: url,
data: formData,
processData: false,
contentType: false,
success: function(data){},
error: function(err){}
});
Now I am getting the data on success from the server. But it is in encoded format. Hence the file is not downloading on the browser. When I look in the browser, data
comes up as garbage encoded values.
Is there a way, I can decode this data
and download the file on browser.