How to download Export instead of storing on server?

I have created an export header action on my table like this:
->headerActions([
ExportAction::make()
->exporter(GroupOrderExporter::class),
])
->headerActions([
ExportAction::make()
->exporter(GroupOrderExporter::class),
])
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/export
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....
Solution
PK
Povilas K19d ago
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.
PK
Povilas K19d ago
Perhaps use this package instead, if you export to excel? https://filamentphp.com/plugins/pxlrbt-excel
Filament
Excel Export by Dennis Koch - Filament
Easy Excel exports for Filament Admin
N
nowak19d ago
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! 🙂
Want results from more Discord servers?
Add your server
More Posts
Wizard form submitSo im using wizard steps and in my form i have 3 steps but the "create" , "create and create anotherWidget table custom queryHi all, i've a widget that aims to show the latest casting like this: ```php class LatestCastings Policy not applying on custom actionI have a custom filament class that extends filament table action. Its purpose is to update the recoIncorrect orderingHello everybody. Guys, why is this ordering always wrong? The 1040 should come at the end and not atText overflow ellipsisHi all, I'am looking for a way to the size the textcolumn according to the screen size. If the sizeFill FileUpload with generated imagesIm trying to fill a FileUpload field with an image I generate using OpenAI's Dall e I added the reFilter from AccessorHello Together, i'm using Laravel Venture for Workflow Jobs, and i have set in my model a Accessor.Create action on custom pageI made a custom page and want to add a 'new' button to it. I added it, when i press it it shows an eLong time loading after click Action ModalHi, now Im facing the page took long time to load on landing, after click action, after submit. whtextareaHow to delete images in storage files when I delete my post in my blog from filament ?Checkbox image/select rowI have a table only with image column and actions. Like on this page https://demo.filamentphp.com/blFull width FilamentPHPI don't understand why, but since this morning on my whole application there is a problem : the menuMethod for allowing full HTML/Markup in Table ViewI'm attempting to create a ticketing program for my panel and thought it would make sense to use a tjson data in DB cast to object, seem not working in form, whyI save data as a json type to Mysql. In the model, when I cast to object, it won't read to Form. Bu