I make an ajax call 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){
window.location.href = data.URL; // data does not have URL attribute.
},
error: function(err){}
});
Here, I should ideally get an excel file download as response.
However, the
success: function(data){
}
Here the data
that i get contains a bunch of encoded values which I can see in the browser console. How can I get the download url here.