Stefano
Cant download xlsx in vapor through Export action
unfortunately no, I had to settle for the .csv format...
if I had to go any further I would've tried to hook myself somewhere and add the X-Vapor-Base64-Encode header to true, but I did not see any obvious way to do so at the time
8 replies
Cant download xlsx in vapor through Export action
I could narrow it down to
Filament\Actions\Exports\Downloaders\XlsxDownloader
the issue seems to be
the download method is having issues with the lambda runtime. I would guess this is what I am talking about:
https://docs.vapor.build/projects/development.html#binary-responses
if I delete the file, the streamed response kicks in (building the file inside the stream from the CSV data), which works just fine. Unfortunately there doesnt seem to be a way to keep the xlsx download button but disable its generation (I wouldnt even call this correct)8 replies