We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there any solution to this problem? I don't see any guides about downloading sheet files thru ajax request ( Axios)
The text was updated successfully, but these errors were encountered:
I have the same problem.
Sorry, something went wrong.
@dev-aes You can refer to my code snippet. Here I save the file to storage_path and then send it to the client. PHP code
$fastexcel = new FastExcel($collection); $fastexcel->export(storage_path("temp_file.csv")); return response()->download(storage_path("temp_file.csv"), "temp_file.csv")->deleteFileAfterSend(true);
Js code
axios({ url: 'export-csv', method: 'post', responseType: 'blob', data: {}, }).then((response) => { let url = window.URL.createObjectURL(new Blob([response.data])); let link = document.createElement('a'); link.href = url; link.setAttribute('download', "temp_file.csv"); document.body.appendChild(link); link.click(); });
No branches or pull requests
is there any solution to this problem? I don't see any guides about downloading sheet files thru ajax request ( Axios)
The text was updated successfully, but these errors were encountered: