Downloading a file
Permalink
Hi everyone,
On several of my pages I have placed a "download" icon (a stack of a jpg image with a link to the .pdf file). When the icon is clicked, a new window opens with what I guess is a pdf viewer and a floating toolbar to change the view, save, print.
How do I make the click go to downlaod rather than the viewer?
It does the same thing when I use the simple document block.
Im on C5.7.3.1, Fundamental theme
Thx,
Marc
On several of my pages I have placed a "download" icon (a stack of a jpg image with a link to the .pdf file). When the icon is clicked, a new window opens with what I guess is a pdf viewer and a floating toolbar to change the view, save, print.
How do I make the click go to downlaod rather than the viewer?
It does the same thing when I use the simple document block.
Im on C5.7.3.1, Fundamental theme
Thx,
Marc
One again you have come to my rescue.
Works like a charm.
Marc
Works like a charm.
Marc
hmmmm...
I added this line:
AddType application/octet-stream .pdf
to the end of my htaccess file.
It worked great for the 1st file I tried - went straight to download.
None of the other files on my site will follow suit... they all open in a broswer.
??? any ideas?
I added this line:
AddType application/octet-stream .pdf
to the end of my htaccess file.
It worked great for the 1st file I tried - went straight to download.
None of the other files on my site will follow suit... they all open in a broswer.
??? any ideas?
hmmmm...
I added this line:
AddType application/octet-stream .pdf
to the end of my htaccess file.
It worked great for the 1st file I tried - went straight to download.
None of the other files on my site will follow suit... they all open in a broswer.
??? any ideas?
Marc Michaud
your brand brokers, inc.
301-133 Wynford Drive, Toronto, ON M3C 0J5
VOICE/TEXT 416.556.9365 | info@yourbrandbrokers.com
NEW! Please visit us on the web:
http://www.yourbrandbrokers.com
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: April 8, 2015 11:20 PM
To: info@yourbrandbrokers.com
Subject: Downloading a file : Editing with concrete5
I added this line:
AddType application/octet-stream .pdf
to the end of my htaccess file.
It worked great for the 1st file I tried - went straight to download.
None of the other files on my site will follow suit... they all open in a broswer.
??? any ideas?
Marc Michaud
your brand brokers, inc.
301-133 Wynford Drive, Toronto, ON M3C 0J5
VOICE/TEXT 416.556.9365 | info@yourbrandbrokers.com
NEW! Please visit us on the web:
http://www.yourbrandbrokers.com
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: April 8, 2015 11:20 PM
To: info@yourbrandbrokers.com
Subject: Downloading a file : Editing with concrete5
There are several addons that provide download links.
http://www.concrete5.org/marketplace/addons/list-files-from-set1...
http://www.concrete5.org/marketplace/addons/documents...
http://www.concrete5.org/marketplace/addons/file-list-pro1...
The concrete5 API includes calls to create a forced download link (so a file will always download rather than open in the browser). However, I am not sure which of the above do that for you, so you may need to create a custom view.
You could also look at creating a custom view to force a download for the core file block.
http://www.concrete5.org/marketplace/addons/list-files-from-set1...
http://www.concrete5.org/marketplace/addons/documents...
http://www.concrete5.org/marketplace/addons/file-list-pro1...
The concrete5 API includes calls to create a forced download link (so a file will always download rather than open in the browser). However, I am not sure which of the above do that for you, so you may need to create a custom view.
You could also look at creating a custom view to force a download for the core file block.
I found this link on the topic.
https://css-tricks.com/snippets/htaccess/force-files-to-download-not...