Stefano
Stefano
FFilament
Created by jagato0 on 3/21/2024 in #❓┊help
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
FFilament
Created by jagato0 on 3/21/2024 in #❓┊help
Cant download xlsx in vapor through Export action
I could narrow it down to Filament\Actions\Exports\Downloaders\XlsxDownloader the issue seems to be
if ($disk->exists($filePath = $directory . DIRECTORY_SEPARATOR . $fileName)) {
return $disk->download($filePath);
}
if ($disk->exists($filePath = $directory . DIRECTORY_SEPARATOR . $fileName)) {
return $disk->download($filePath);
}
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
FFilament
Created by jagato0 on 3/21/2024 in #❓┊help
Cant download xlsx in vapor through Export action
Did you ever solve this? Having the same issue it seems to work locally (using minio to store files)
8 replies