HTML download option not working.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
I am attempting in 4.0 to use the Custom HTML text to put a link on page to download a file using specification attribute links.  

Code in specification attribute uses HTML download attribute ** I'd show it, but CloudFlare keeps blocking my post.

When I click link for pdf, it opens in a new tab as it should.  When I click on link to download, tab opens at bottom and says 55360.ies Failed - No File.

I have edited the web config Content Security policy, but I think it is still blocking.

Are meta tags needed as well?

How is the html download function classified?  img-src, media-src, etc.  I attempted to use both * and filesystem in config file.

I specified both * and file system because what I am reading says this - * Wildcard, allows any URL except data: blob: file system: schemes.
4 years ago
Hi Artdtc,

I think this is working to download file from specification attribute.
<a target="_blank" href="http://[yourstoreURL]/images/Resume.pdf" download> Download PDF </a>
using this you can download from it.

but remember one things if you are put another url instead of your store URL then it open it in tab.
<a href="https://images.pexels.com/photos/67636/rose-blue-flower-rose-blooms-67636.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" download> Download </a>

this will open it in new tab.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.