Error downloading Filament generated Excel export when deployed to Vapor #14194
Unanswered
eacsoftware-chris
asked this question in
Help
Replies: 1 comment
-
I am also experiencing this problem. I switched to CSV exports and it works without issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Actions
Package Version
V3.2.40
How can we help you?
I'm using the Export action to export table data to CSV and Excel. This works fine on my local environment, but once deployed to Vapor and configured to use s3, CSVs download fine but XLSX downloads fail with a 502 Bad Gateway.
I suspect the issue may be with binary responses from Vapor in general as detailed here: [https://docs.vapor.build/projects/development.html], however I don't see a way I can hook into the Filament XlsxDownloader to add the recommended:
return $response->withHeaders([ 'X-Vapor-Base64-Encode' => 'True', ]);
Or am I on the wrong track altogether and others have managed to get XLSX downloads to work fine on Vapor?
Beta Was this translation helpful? Give feedback.
All reactions