如何显示附件的下载次数?

My discourse community heavily uses attachments and they really want to see download numbers, similar to how links show number of clicks.

I found this older discourse discussion that implies the existence of a download counter, but I can’t find any information about how to turn it on or if it got removed.

5 个赞

I was also searching for this answer, then re-read the linked topic and others that referenced something like an attachment counter.

They are talking about topic links counter, which I suppose was used back then to directly link to attachments, but I think this isn’t done this way anymore.

On the linked topic above they’re testing clicks on an attachment which is actually a link to CloudFront, while AFAIK currently new attachments are proxied through a [instance]/uploads/short-url/[hash].[ext] route.

That said, I really think this is hugely useful and I’d also like to know if this is something planned to be supported on Discourse - using this upload route to increment an attachment counter and show this counter beside the attachment link, just like external links.

我意识到这是一个非常老的帖子,但有没有 2.9.0.beta.10 的答案?

和原帖一样,我的组织希望能够计算附件被下载的次数。最终,目标报告将是“下载次数排名前 50 的报告”。

我正在查看 Data Explorer,但还不完全理解其中的关系。

2 个赞