F
Filament5mo ago
lodeki

spa() mode for a Response::download() streams the file rather than direct download.

I have this piece of code for a table action
Action::make('Sample template')->icon('heroicon-o-arrow-down-circle')->url(route('template.property'))
Action::make('Sample template')->icon('heroicon-o-arrow-down-circle')->url(route('template.property'))
for user to download a sample template. When the button is clicked , the file is streamed on the browser rather than being downloaded. When i remove the
->spa()
->spa()
, the file is downloaded successfully. Seems the issue is related to the wire:navigate that's added . Is there a way i can resolve this since i don't want to omit the ->spa() mode.Any idea ?
0 Replies
No replies yetBe the first to reply to this messageJoin