Highlighted

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

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

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

Views

311

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

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

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

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

Views

312

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
Aug 28, 2017 0
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

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

Copy link to clipboard

Copied

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

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...
Aug 29, 2017 1