Highlighted

Link to JPG

New Here ,
Jun 27, 2017

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.

Views

207

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Link to JPG

New Here ,
Jun 27, 2017

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.

Views

208

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 27, 2017 0
LEGEND ,
Jun 27, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 27, 2017 0
New Here ,
Jun 28, 2017

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. 🙂

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2017 0
LEGEND ,
Jun 28, 2017

Copy link to clipboard

Copied

„example below“??

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2017 0
New Here ,
Jun 28, 2017

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2017 0
LEGEND ,
Jun 28, 2017

Copy link to clipboard

Copied

Perhaps this might be done by using custom code.

Let’s ask Pavel​ about this!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2017 0
Guide ,
Jun 28, 2017

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.


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2017 1