lundi 22 août 2016

Laravel - display a PDF file in storage without forcing download?

I have a PDF file stored in app/storage/, and I want authenticated users to be able to view this file. I know that I can make them download it using

return Response::download($path, $filename, $headers);

but I was wondering if there is a way to make them view the file directly in the browser, for example when they are using Google Chrome with the built-in PDF viewer. Any help will be appreciated!

Aucun commentaire:

Enregistrer un commentaire