How to download Export instead of storing on server?
I have created an export header action on my table like this:
This downloads the export straight to
public/storage/filament_export/#/files
.
Is it possible that this would be downloaded to the users device as well, or instead? I don't see anything about this being documented in the Export action documentation:
https://filamentphp.com/docs/3.x/actions/prebuilt-actions/exportSolution:Jump to solution
Export actions work with queue unfer the hood, so with their nature they can't be executed immediately to download files.
You need to build your own custom action to achieve what you want, probably....
4 Replies
Solution
Export actions work with queue unfer the hood, so with their nature they can't be executed immediately to download files.
You need to build your own custom action to achieve what you want, probably.
Perhaps use this package instead, if you export to excel? https://filamentphp.com/plugins/pxlrbt-excel
Example in our tutorial https://laraveldaily.com/post/filament-excel-export-import-examples-packages
Thank you! Strange that the queue can't be used for immediate downloads, I would imagine that this is the main use case for people needing to export records, to download them to their devices. I will experiment with custom actions and perhaps use the Excel Export package. Thanks for sharing your tutorial! π