X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/cb770c534d4d1ac776fb78126fee7b46f57a2f19..refs/pull/3503/head:/app/Http/Controllers/AttachmentController.php diff --git a/app/Http/Controllers/AttachmentController.php b/app/Http/Controllers/AttachmentController.php index 0a092b63a..03e362f4a 100644 --- a/app/Http/Controllers/AttachmentController.php +++ b/app/Http/Controllers/AttachmentController.php @@ -233,10 +233,10 @@ class AttachmentController extends Controller $attachmentStream = $this->attachmentService->streamAttachmentFromStorage($attachment); if ($request->get('open') === 'true') { - return $this->streamedInlineDownloadResponse($attachmentStream, $fileName); + return $this->download()->streamedInline($attachmentStream, $fileName); } - return $this->streamedDownloadResponse($attachmentStream, $fileName); + return $this->download()->streamedDirectly($attachmentStream, $fileName); } /**