Force a file to download with a “Save As” prompt

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

If you want to force someone to download a file instead of opening it in their browser, use this code.

Copy this code and paste it in your HTML
  1. AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.