# Files/Download Manager For Discourse

**URL:** <https://meta.discourse.org/t/files-download-manager-for-discourse/26887>\
**Category:** Feature\
**Created:** [27 Março , 2015 22:41 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887 "2015-03-27T22:41:42Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [30 Março , 2015 06:42 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/21 "2015-03-30T06:42:42Z")

</div>

I think that your best bet for that is to host the files somewhere with access control, ACLs and stuff. Google Docs/Drive is a good example of that.

---

<div class="post-metadata">

**Author:** ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)\
**Post date:** [30 Março , 2015 06:43 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/22 "2015-03-30T06:43:32Z")

</div>

Hmm. Or possibly OwnCloud. At least an idea to explore!

---

<div class="post-metadata">

**Author:** ![Qasem\_h](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qasem_h/32/155935_2.png) [@Qasem\_h](https://meta.discourse.org/u/Qasem_h)\
**Post date:** [1 Abril , 2015 21:16 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/23 "2015-04-01T21:16:48Z")

</div>

any new idea for media/file manager ??

---

<div class="post-metadata">

**Author:** ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)\
**Post date:** [9 Junho , 2015 06:01 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/24 "2015-06-09T06:01:35Z")

</div>

> [@purldator](#):
>
> reason I can see this as something useful is to handle downloads. Like a download manager to pass and handle permissions per file.

> [@elberet](#):
>
> Per-file permissions would be a completely new feature for Discourse and require a lot more work before the UI becomes relevant. Not that such permissions wouldn’t be welcome… right now, if you are logged in and know a file’s URL, you can download the file even if it was posted in a restricted category that you cannot access or in a direct message.

> [@purldator](#):
>
> Yeah, that’s a bit of a problem. That would rely on users or staff being honest and not sharing links.

> [@riking](#):
>
> Uploads do not have source information associated with them, the only protection available is “prevent anons from downloading files”.

My «[Restrict Files](https://meta.discourse.org/t/restrict-files-plugin-sell-a-digital-content-on-your-discourse-forum/29775)» plugin solves the problem of access control to forum digital content (downloads).  
The forum owner can grant the download permissions only to a particular forum groups / or to users with specified trust level and withdraw download permissions from other groups / users.  
An example of restricted file: [http://discourse.pro/file/113](http://discourse.pro/file/113)  
You can not download it neither anonymously nor by just registering on the forum.  
You must be a member of permitted user group to download the file.  
You can test it yourself:  
A test account without download permissions: login: test\_bob, password: 123456  
A test account with download permissions: login: test\_john, password: 654321  
A file is always permitted to be downloaded by its uploader.

---

<div class="post-metadata">

**Author:** ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)\
**Post date:** [13 Março , 2020 18:44 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/25 "2020-03-13T18:44:35Z")

</div>

Adoro este exemplo fornecido aqui.

Estou com uma dúvida sobre imagens enviadas.

Muitas vezes faço o upload de uma imagem e depois mudo de ideia… apago a imagem e talvez faça o upload de outra.

Estou assumindo que arquivos enviados não utilizados, como esse, ainda estão armazenados em algum lugar na minha instância.

Existe algum recurso de remoção automática que exclua um arquivo que não esteja realmente exibido em algum lugar ou anexado a nenhum tópico? Estou assumindo que não.

Seria útil ver uma lista dos arquivos sendo usados na nossa instância, como no exemplo que @tobiaseigen deu, mas também ver onde o ativo é usado/exibido… ou que ele NÃO está sendo usado/exibido.

Talvez esse seja um caso de uso tão incomum que não valeria a pena desenvolver um recurso como esse. 2 MB não faz uma grande diferença no armazenamento… mas se isso acontecer muito, em um fórum grande, ao longo do tempo… talvez se torne uma preocupação maior ¯\_(ツ)\_/¯

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [13 Março , 2020 20:54 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/26 "2020-03-13T20:54:16Z")

</div>

Atualização: Este recurso foi implementado.

> [@Secure Uploads](https://meta.discourse.org/t/secure-media-uploads/meta/140017):
>
> Added in the [Discourse 2.4 release](https://meta.discourse.org/t/discourse-version-2-4/108194) in February is the Secure Uploads feature, which provides a higher degree of security for ALL uploads (images, video, audio, text, pdfs, zips, and others) within a Discourse instance. Prerequisites You must have S3 uploads enabled on your site, which needs the following settings to be filled: S3 access key id S3 secret access key S3 region S3 upload bucket You also must be using an S3 bucket that does not have a Public bucket policy, and you need to make su…

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [13 Março , 2020 20:55 UTC](https://meta.discourse.org/t/files-download-manager-for-discourse/26887/27 "2020-03-13T20:55:12Z")

</div>

> [@jord8on](#):
>
> Existe algum tipo de recurso de remoção automática que exclui um arquivo que não está realmente exibido em algum lugar ou anexado a nenhum tópico? Estou assumindo que não.

Sim, arquivos que não estão presentes em nenhuma postagem não excluída são “tombstoneados” após (7?) dias e excluídos após mais (14?) dias.

[Página anterior](https://meta.discourse.org/t/files-download-manager-for-discourse/26887.md?page=1)
