Hi, fairly new to Muse but can't find an answer to this at all. I know you can link to PDFs, ZIPs and pages but is there a was to link to a JPG so that it downloads in the same way as a ZIP file straight away? Obviously I could put the JPGs into ZIP folders but this would be time consuming for me and the end user. Thank you in advance.
If you link a downloadable file to a Muse element, it will be displayed (if the browser can handle the file type) or downloaded directly by your browser. Muse can’t influence this.
Thank you for your response. I understand what you are saying and agree but on the example below you can click the link and it will automatically download the PDF rather than viewing it. It would just allow the user to download individual files quickly rather than having to manually save them each time. 🙂
There are several ways.
Write in .htaccess:
AddType application/octet-stream .png
AddType application/octet-stream .gif
AddType application/octet-stream .jpg
AddType application/download .png
AddType application/download .gif
AddType application/download .jpg
AddType application/force-download .png
AddType application/force-download .gif
AddType application/force-download .jpg
RewriteRule .*\.(pdf|png|gif|jpg)$ - [L,T=application/octet-stream]
And many more you can find on the Internet. But all these methods do not always work and depend on the configuration of the server.
The way that works always is a simple link with the download attribute.
<a href="images/your_image.jpg" download="">Download image</a>
Attention, this only works on the server. On the local computer in the preview does not work.