# 첨부파일 다운로드 수를 표시하는 방법?

**URL:** https://meta.discourse.org/t/how-to-show-number-of-downloads-for-an-attachment/164788
**Category:** Support
**Created:** [9월 22, 2020, 2:30오전 UTC](https://meta.discourse.org/t/how-to-show-number-of-downloads-for-an-attachment/164788 "2020-09-22T02:30:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ipoopfool](https://avatars.discourse-cdn.com/v4/letter/i/d78d45/32.png) [@ipoopfool](https://meta.discourse.org/u/ipoopfool)
#### Post date: [9월 22, 2020, 2:30오전 UTC](https://meta.discourse.org/t/how-to-show-number-of-downloads-for-an-attachment/164788/1 "2020-09-22T02:30:10Z")

</div>

> [@Attachment "number of downloads" counter resets whenever a reply is edited](https://meta.discourse.org/t/attachment-number-of-downloads-counter-resets-whenever-a-reply-is-edited/72551):
>
> This happens after updating to v1.9.0.beta13 +63 Steps to reproduce: Create a post with attachments. Let some users download them, so that the counters go up. Edit the post, for example adding a single text line at the end. After this, counters are back to zero.

저희 Discourse 커뮤니티는 첨부 파일을 많이 사용하며, 링크의 클릭 수와 유사하게 다운로드 횟수를 확인할 수 있기를 원합니다.

다운로드 카운터가 존재한다는 것을 시사하는 오래된 Discourse 토론을 찾았지만, 이를 활성화하는 방법이나 제거되었는지에 대한 정보를 찾을 수 없습니다.

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [10월 29, 2020, 3:25오전 UTC](https://meta.discourse.org/t/how-to-show-number-of-downloads-for-an-attachment/164788/2 "2020-10-29T03:25:31Z")

</div>

저도 이 답을 찾아보고 있었고, 링크된 주제와 첨부파일 카운터 같은 것을 언급한 다른 주제들을 다시 읽어보았습니다.

그들은 주제 링크 카운터에 대해 이야기하고 있는데, 아마도 당시에는 첨부파일에 직접 링크하기 위해 사용되었을 것입니다. 하지만 지금은 그렇게 하지 않는다고 생각합니다.

위에서 링크된 주제에서는 실제로 CloudFront로 연결되는 링크인 첨부파일의 클릭을 테스트하고 있는데, 제 지식을 기준으로 현재는 새 첨부파일이 `[instance]/uploads/short-url/[hash].[ext]` 경로를 통해 프록시된다고 알고 있습니다.

그럼에도 불구하고, 저는 이것이 매우 유용하다고 생각하며, Discourse에서 이 업로드 경로를 사용하여 첨부파일 카운터를 증가시키고, 외부 링크처럼 첨부파일 링크 옆에 이 카운터를 표시하는 기능이 지원될 예정인지도 알고 싶습니다.

---

<div class="post-metadata">

### Author: ![PapaBear](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@PapaBear](https://meta.discourse.org/u/PapaBear)
#### Post date: [10월 19, 2022, 8:39오후 UTC](https://meta.discourse.org/t/how-to-show-number-of-downloads-for-an-attachment/164788/3 "2022-10-19T20:39:44Z")

</div>

이 스레드가 매우 오래되었음을 알지만, 이 질문에 대한 2.9.0.beta.10 버전의 답변이 있나요?

원글 작성자처럼, 우리 조직도 첨부 파일이 다운로드된 횟수를 집계할 수 있기를 원합니다. 궁극적으로는 "다운로드 횟수 포함 상위 50개 다운로드"를 목표 보고서로 삼고 싶습니다.

[Data Explorer](https://meta.discourse.org/t/32566?silent=true)를 살펴보고 있지만, 아직 관계(relationships)를 정확히 이해하지 못하겠습니다.
