Support » Plugin: Easy Digital Downloads Free Link » PDF opens in New Page

  • The download links are opening the PDF versus downloading? I must be doing something wrong.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author webaware

    (@webaware)

    G’day schroecw,

    That totally depends on how the link is served. The link is a direct link to the file, so if you don’t do anything else, the file will be handled however the browser is configured (e.g. open in a viewer).

    You can change that by adding this to a file named .htaccess in your uploads folder or wherever your pdf files are:

    AddType application/octet-stream .pdf

    In the next version of the plugin, I’ll look at adding an attribute to the link tag to ask the browser to download the file without requiring this. Unfortunately, that method doesn’t work in Internet Explorer.

    cheers,
    Ross

Viewing 1 replies (of 1 total)
  • The topic ‘PDF opens in New Page’ is closed to new replies.