I am new to laravel, I want to see a pdf stored by a client, without downloading it, just see it. I used PHP code before in the past.
<? php
header ('Content-Description: File Transfer');
header ("Content-type: application / pdf");
readfile ('file / cv /'.$_ GET [' file ']);
?>
I have this code, where I can download the PDF
<a href=" "> </a>
Should I add a function so I can see the PDF content in a tab? I hope to have explained well greetings !.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire