mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 01:58:00 +08:00
Merge pull request #15792 from gillobis/fix-xlsx-download
fix: handle a possible issue from output buffer
This commit is contained in:
@@ -24,7 +24,10 @@ class XlsxDownloader implements Downloader
|
||||
$fileName = $export->file_name . '.xlsx';
|
||||
|
||||
if ($disk->exists($filePath = $directory . DIRECTORY_SEPARATOR . $fileName)) {
|
||||
return $disk->download($filePath);
|
||||
$response = $disk->download($filePath);
|
||||
ob_end_clean();
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
$writer = app(Writer::class);
|
||||
|
||||
Reference in New Issue
Block a user