public function exportZip(int $id, ZipExportBuilder $builder)
{
$chapter = $this->queries->findVisibleByIdOrFail($id);
- $chapterName= $chapter->getShortName();
$zip = $builder->buildForChapter($chapter);
- return $this->download()->streamedFileDirectly($zip, $chapterName . '.zip', filesize($zip), true);
+ return $this->download()->streamedFileDirectly($zip, $chapter->slug . '.zip', true);
}
-}
\ No newline at end of file
+}