Display file in browser or show open/save dialog first
Copy this code and paste it in your HTML
/*Display file in brower*/
header('Content-Disposition: inline;');
/*Show the open/save/cancel dialog*/
header('Content-Disposition: attachment;');
Report this snippet
Comments
Subscribe to comments