# How to show a download count on files uploaded to a post (Pro hosting, theme component only)?

**URL:** <https://meta.discourse.org/t/how-to-show-a-download-count-on-files-uploaded-to-a-post-pro-hosting-theme-component-only/417810>\
**Category:** Extras\
**Created:** [19 בנובמבר,‏ 2026,‏ 6:51am UTC](https://meta.discourse.org/t/how-to-show-a-download-count-on-files-uploaded-to-a-post-pro-hosting-theme-component-only/417810 "2026-11-19T06:51:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jessica\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jessica_s/32/584823_2.png) [@Jessica\_S](https://meta.discourse.org/u/Jessica_S)\
**Post date:** [19 בנובמבר,‏ 2026,‏ 6:51am UTC](https://meta.discourse.org/t/how-to-show-a-download-count-on-files-uploaded-to-a-post-pro-hosting-theme-component-only/417810/1 "2026-11-19T06:51:17Z")

</div>

Hi everyone,

We run a community on Discourse (Pro hosting, so no custom plugins, only themes and theme components). We have a category where members share downloadable files (BIOS packages, scripts, config packs). These files are uploaded **directly to Discourse** , not hosted on GitHub or elsewhere.

**What we want**  
A visible **download count** on each file, similar to the reference screenshot below (a skills marketplace showing favorites, installs and a download button). Ideally:

- a count that increases each time someone downloads the attachment,
- shown in the topic and, if possible, on topic list cards,
- sortable or filterable later if the data is available.

**What we tried**  
We built a theme component that adds a download button and tries to read the attachment’s click count. The count always stays at **0** , even after several test downloads from different accounts.

**What we need to know**

1. Does Discourse track downloads of uploaded attachments out of the box? If yes, where is that data stored, and is it exposed in the topic/post JSON, or the [Data Explorer](https://meta.discourse.org/t/32566?silent=true)?
2. If it is tracked as link clicks, are attachment clicks counted when the file is opened via the `/uploads/short-url/...` link, and does that count depend on any site setting (for example, tracking clicks for internal links)?
3. If it isn’t tracked, what’s the recommended approach on a hosted plan? For example, a tracking redirect, an API-based counter, or a theme component that reports to an external endpoint.
4. Does the count behave differently for files added through a Form Template “upload” field compared with files added in the normal composer?

**Environment**

- Discourse Pro hosted, Foundation theme
- Files uploaded as post attachments (not external links)
- Version: [paste from /admin]

**Reference (what we’d like to build)**

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/3/a/e3a2e2f88b0985f186363e91e101bdde6804c9ea.jpeg)

Shows the download button, favorites count and install/download count on a resource page.

Any pointers, example code, or existing components would be really appreciated. Thank you!

---

_[View the full topic](https://meta.discourse.org/t/how-to-show-a-download-count-on-files-uploaded-to-a-post-pro-hosting-theme-component-only/417810)._
