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

Downloable links that aren't PDFs or in Zip Folders.

New Here ,
Aug 28, 2017 Aug 28, 2017

Copy link to clipboard

Copied

Hello,

I have been searching for a way to have downloadable file, such as an IES file, download right off the page rather than opening in another tab or the same tab.

I just want the suer to be able to download a copy rather than it just open.

I've seen put it in a Zip folder but is there any other way to do it?

Thanks.

Views

394

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

Adobe Employee , Aug 29, 2017 Aug 29, 2017

Hi adolfooseguera​

Use the download attribute inside your <a> tag.

Example :

<a href="files/abc.pdf" download>

<a href="/images/abc.jpeg" download>

The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.

This attribute is only used if the href attribute is set.

The value of the attribute will be the name of the downloaded file.

You will need to manually add this attribute by editing the page html.

Thanks and Regards

Ayush Rathi

Votes

Translate

Translate
Aug 28, 2017 Aug 28, 2017

Copy link to clipboard

Copied

Hello adolfooseguera,

I am not sure if there is any other way apart from the one suggested here - How do place a file for download from our server?  which is to include some PHP and server side codes.

However, probably any of our expert contributors can shed their knowledge here is this can be achieved in the much simple way than messing with codes.

Regards,

Ankush

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
Adobe Employee ,
Aug 29, 2017 Aug 29, 2017

Copy link to clipboard

Copied

LATEST

Hi adolfooseguera​

Use the download attribute inside your <a> tag.

Example :

<a href="files/abc.pdf" download>

<a href="/images/abc.jpeg" download>

The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.

This attribute is only used if the href attribute is set.

The value of the attribute will be the name of the downloaded file.

You will need to manually add this attribute by editing the page html.

Thanks and Regards

Ayush Rathi

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