Viewing 4 replies - 1 through 4 (of 4 total)
  • I am REALLY not sure if this will solve your problem at all, but it may be worth a try. I haven’t tried it out with AAPL yet, so it may not even help.

    However this is a little trick I have used in the past to force the browser to download file of a specific type instead of loading them inline.

    Add this to your .htaccess file and replace “pdf” with whatever file type you are trying to force download. Mind you, this will make it so the browser will download ALL files of this type on your server, so make sure it is what you want.

    <FilesMatch "\.(?i:pdf)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>

    Another option might be to just make it so target="_blank" when linking to it. That seems to work for loading images.

    Thread Starter euphoriuhh

    (@euphoriuhh)

    Thanks Travis!

    I was trying to stay away from the .htaccess hack.

    As it turns out, I realized that links to pdfs on external domains were not exhibiting the issue. I then added a www. in front of the pdf url and it worked as expected.

    A little bizarre but hey, whatever! ?? Feel free to Resolve. Thanks!

    Plugin Author Dean Williams

    (@deano1987)

    .htaccess idea would not do anything, since the user is not being by any headers because javascript is making the connection and fetching the data directly, outside of the browser.

    target=”_blank” I believe might not work either.

    In the next version of AAPL, there will be an excludes box where you can put the rule “.pdf”. So stay tuned ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Advanced AJAX Page Loader] Links to downloadable documents not working’ is closed to new replies.