Laravel-excel: AJAX support

Created on 10 Feb 2016  路  1Comment  路  Source: Maatwebsite/Laravel-Excel

Hello,

this might be beyond the scope of this implementation, but is it possible to download the exported excel file throught jQuery AJAX??

Thanks in advance

Most helpful comment

I was able to solve the problem. I'm using 'store' method to save the file on the server, and then I send the response (the path to the file):

export.done(function (data) {
window.location.href = data;
});

And the file can be donwloaded.

>All comments

I was able to solve the problem. I'm using 'store' method to save the file on the server, and then I send the response (the path to the file):

export.done(function (data) {
window.location.href = data;
});

And the file can be donwloaded.

Was this page helpful?
0 / 5 - 0 ratings