SyntaxFix
Write A Post
Hire A Developer
Questions
I think that you can use
$file= public_path(). "/download/info.pdf"; $headers = array( 'Content-Type: ' . mime_content_type( $file ), );
With this you be sure that is a pdf.