PDF downloads on Instant Website

Good day.

I am using Instant Website (love it) and had a quick question.

On one of my pages I have a link to a PDF form that I want users to download.

However, I'm not sure if it is possible to force it to be downloaded instead of opened in their browser. if it is possible, how would I go about doing that?

Thanks,
Paul

Re: [sykomac] PDF downloads on Instant Website

By Jason - November 16, 2011

Hi Paul,

Unfortunately, whether or not files are downloaded or opened by default is a setting in the client's browser, so there is no simple way to control that from a webpage.

Please let us know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [sykomac] PDF downloads on Instant Website

By Dave - November 16, 2011

It's possible with custom programming, you can write a custom PHP wrapper that sends different headers.
http://webdesign.about.com/od/php/ht/force_download.htm

Or you could trying creating an .htaccess file to force downloads like this:
http://www.blog.highub.com/apache/http-server/force-files-like-pdf-download-using-htaccess/

Those can work, but can also be a little tricky to setup.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] PDF downloads on Instant Website

Dave,

Using htaccess to force download the PDF worked great. Very easy.

Thank you,
Paul