Display file in browser or show open/save dialog first

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. /*Display file in brower*/
  2. header('Content-Disposition: inline;');
  4. /*Show the open/save/cancel dialog*/
  5. header('Content-Disposition: attachment;');

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.