HTL link to download assets dam | Community
Skip to main content
Level 2
March 26, 2020
Question

HTL link to download assets dam

  • March 26, 2020
  • 1 reply
  • 2270 views

Hi,

 

I created a component to download a file with a .docx extension stored in my dam folder, but when I try to download it, it says that the download is unsuccessful. When I use a file with .pdf extension it works correctly for me.

 

Here I show an image of the failed download:

 

My HTL code is this:

 

This error occurs only with .docx file. Could you please help me to know what the problem is? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Vijayalakshmi_S
Level 10
March 30, 2020

Hi,

 

Can you try creating a component extending core download component (core/wcm/components/download/v1/download) and observe the behavior. (HTL code looks similar though)

If it is still not happening, can you check for the "docx" asset which has filename without space (%20)