Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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. 🙂
Copy link to clipboard
Copied
„example below“??
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Perhaps this might be done by using custom code.
Let’s ask Pavel about this!
Copy link to clipboard
Copied
There are several ways.
Write in .htaccess:
AddType application/octet-stream .png
AddType application/octet-stream .gif
AddType application/octet-stream .jpg
or
AddType application/x-force-download.png
AddType application/x-force-download.gif
AddType application/x-force-download.jpg
or
AddType application/download .png
AddType application/download .gif
AddType application/download .jpg
or
AddType application/force-download .png
AddType application/force-download .gif
AddType application/force-download .jpg
or
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.