FIX: format

This commit is contained in:
Juan Pablo Vial
2022-03-07 22:25:03 -03:00
parent 3b473bcefa
commit 26bac169de
2 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ class Informe
public function send(string $filename)
{
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header("Content-Disposition: attachment;filename='{$filename}'");
header("Content-Disposition: attachment;filename=\"{$filename}\"");
header('Cache-Control: max-age=0');
$writer = IOFactory::createWriter($this->spreadsheet, 'Xlsx');