• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Link to JPG

New Here ,
Jun 27, 2017 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.

Views

301

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
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 27, 2017 Jun 27, 2017

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.

Votes

Translate

Translate
LEGEND ,
Jun 27, 2017 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.

Votes

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
community guidelines
New Here ,
Jun 28, 2017 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. 🙂

Votes

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
community guidelines
LEGEND ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

„example below“??

Votes

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
community guidelines
New Here ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

Votes

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
community guidelines
LEGEND ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

Perhaps this might be done by using custom code.

Let’s ask Pavel​ about this!

Votes

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
community guidelines
Guide ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

LATEST

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.


Votes

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
community guidelines