I have a link and when clicking on it the file is opened, but I want to display the Open/Save dialog so that people could decide whether to open the file or save it.
Here is the code:
<a href="../downloads/armhlv.ttf">font</a>
if you're on apache you can add this to your .htaccess
Code:
AddType application/octet-stream .ttf
I've never tried with a ttf before thought so if that doesn't work try putting it in a zip.
You can do it in a script on any IIS too (and apache) by forcing the type in the same way (to application/octet-stream).
see Example #1 Download dialog http://www.php.net/header
Bookmarks