Skip to content

Commit

Permalink
Open PDFs in the browser rather than downloading
Browse files Browse the repository at this point in the history
Fixes #22583
  • Loading branch information
vboctor committed Mar 29, 2017
1 parent 741acf2 commit aa40d4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_download.php
Expand Up @@ -195,7 +195,7 @@
$t_show_inline = $f_show_inline;
$t_mime_force_inline = array(
'image/jpeg', 'image/gif', 'image/tiff', 'image/bmp', 'image/svg+xml', 'image/png',
);
'application/pdf' );
$t_mime_force_attachment = array( 'application/x-shockwave-flash' );

$t_mime_type = substr( $t_content_type, 0, strpos( $t_content_type, ';' ) );
Expand Down

0 comments on commit aa40d4d

Please sign in to comment.