Created
June 25, 2013 12:51
-
-
Save Cipa/5858205 to your computer and use it in GitHub Desktop.
force pdf download
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.(?i:pdf)$"> | |
ForceType application/octet-stream | |
Header set Content-Disposition attachment | |
</FilesMatch> | |
##you can also use html5 download attribute | |
##<a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a> | |
##<a href="expenses.pdf" download>Download Your Expense Report</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment