X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/867fc8be64ec41c41c5646499c1aa34c1e817d53..7ee695d74a4278b6ecc9a5e1f5537a971d835366:/app/Http/Controllers/FileController.php diff --git a/app/Http/Controllers/FileController.php b/app/Http/Controllers/FileController.php index 4cdcf66dc..2518d6cd3 100644 --- a/app/Http/Controllers/FileController.php +++ b/app/Http/Controllers/FileController.php @@ -196,7 +196,7 @@ class FileController extends Controller $fileContents = $this->fileService->getFile($file); return response($fileContents, 200, [ 'Content-Type' => 'application/octet-stream', - 'Content-Disposition' => 'attachment; filename="'. $file->name .'"' + 'Content-Disposition' => 'attachment; filename="'. $file->getFileName() .'"' ]); }