Results 1 to 3 of 3

Thread: Open/Save dialog

  1. #1
    Join Date
    Mar 2008

    Open/Save dialog

    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>

  2. #2
    Join Date
    Apr 2007
    if you're on apache you can add this to your .htaccess
    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

    .htaccess should be faster
    Last edited by SyCo; 05-26-2008 at 02:08 PM.

  3. #3
    Join Date
    Mar 2008

    Lightbulb Thank you

    Thank you very much, I didn't think of zipping

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles