X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5a7fb201166ec394c54e0c5bf8f99e9cabb24041..refs/pull/3693/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); } /**