Get the download url of an asset
Hi,
I want to get the download URL of an particular to be referenced in href tag. For example, if I have an asset in this path /dam/downloads/name/name.pdf. How can I get the download link for this file?
Thank,
Ar
Hi,
I want to get the download URL of an particular to be referenced in href tag. For example, if I have an asset in this path /dam/downloads/name/name.pdf. How can I get the download link for this file?
Thank,
Ar
If your asset is residing under /content/dam/downloads/name/name.pdf then you can use download attribute.It download the file instead of opening it.
<a href="https://forums.adobe.com/content/dam/downloads/name/name.pdf" download="xyz"> Click here </a> will download the PDF.
Note: The download attribute is currently not supported in IE (see http://caniuse.com/#search=download%20attribute), it is only supported by firefox, chrome and the latest version of blackberry's browser.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.