Merge pull request #15792 from gillobis/fix-xlsx-download

fix: handle a possible issue from output buffer
This commit is contained in:
Dan Harrin
2025-03-09 08:45:27 +00:00
committed by GitHub
@@ -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);