Expand my Community achievements bar.

HTL link to download assets dam

Avatar

Level 2

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:

Screenshot from 2020-03-26 16-50-23.png

 

My HTL code is this:

Screenshot from 2020-03-26 16-53-42.png

 

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

1 Reply

Avatar

Community Advisor

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)