HTL link to download assets dam

anthonyt2853861

26-03-2020

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? 

Accepted Solutions (0)

Answers (1)

Answers (1)

Vijayalakshmi_S

MVP

30-03-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)