# FileDownloadR 3.0.0 Snippet FileDownloadLink isn't working

**URL:** <https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757>\
**Category:** Extras\
**Created:** [June 5, 2023, 10:30am UTC](https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757 "2023-06-05T10:30:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![winfomatic](https://community.modx.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@winfomatic](https://community.modx.com/u/winfomatic)\
**Post date:** [June 5, 2023, 10:30am UTC](https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757/1 "2023-06-05T10:30:17Z")

</div>

Hello all,

I go creasy with this extension. I just want to print hashed links wich are stored in a TV.  
GetImageList iterates the TVs and prints the templates.

Inside of the template I want to hash the link and print the hashed link.

The first Snipped is working, but is for listing files from a directory with a lot of templating.

```auto
[[!FileDownload?
&getFile=`/assets/bmwi.jpg`
]]

```

 ![2023-06-05 12_29_26-ELO Grundlagenschulung Videozugang _ – Mozilla Firefox](https://modx-community.s3.dualstack.us-east-1.amazonaws.com/original/2X/4/4e61b415aa9a611baf5ecf4659d4936c1ad32dc4.png)

The second Snipped isn’t working and I don’t know why and do not have any log?!

```auto
[[!FileDownloadLink?
&getFile=`/assets/bmwi.jpg`
]]

```

What am I doing wrong?

Best Regards  
björn

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [June 5, 2023, 10:53am UTC](https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757/2 "2023-06-05T10:53:32Z")

</div>

> [@winfomatic](#):
>
> What am I doing wrong?

There seems to be a problem with the default template in the code.

Supply your own template with the `tpl` property:

```auto
[[!FileDownloadLink?
    &getFile=`/assets/bmwi.jpg`
    &tpl=`@CODE <a href="[[+link]]">[[+filename]]</a>`
]]

```

---

<div class="post-metadata">

**Author:** ![winfomatic](https://community.modx.com/letter_avatar_proxy/v4/letter/w/3da27b/32.png) [@winfomatic](https://community.modx.com/u/winfomatic)\
**Post date:** [June 5, 2023, 11:51am UTC](https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757/3 "2023-06-05T11:51:58Z")

</div>

Thanks a lot.

Your code showed the following:  
 ![grafik](https://modx-community.s3.dualstack.us-east-1.amazonaws.com/original/2X/a/a271a5a33c1bc2fe4df7bb3c90e77963d32750e7.png)

And the link is hashed and working. 🤘

I tried the same code as you showed but had a colon after “@CODE:”.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [June 7, 2023, 11:52am UTC](https://community.modx.com/t/filedownloadr-3-0-0-snippet-filedownloadlink-isnt-working/6757/4 "2023-06-07T11:52:51Z")

</div>

Closed on June 7, 2023, 11:52am UTC

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.
