# O Discourse pode aceitar anexos ao usar e-mails para criar novos tópicos de categoria?

**URL:** https://meta.discourse.org/t/can-discourse-accept-attachments-when-using-emails-to-create-new-category-topics/322980
**Category:** Support
**Tags:** email-in
**Created:** [Agosto 22, 2024, 9:52pm UTC](https://meta.discourse.org/t/can-discourse-accept-attachments-when-using-emails-to-create-new-category-topics/322980 "2024-08-22T21:52:20Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [Agosto 23, 2024, 7:40pm UTC](https://meta.discourse.org/t/can-discourse-accept-attachments-when-using-emails-to-create-new-category-topics/322980/7 "2024-08-23T19:40:50Z")

</div>

> [@exlabs](#):
>
> Você sabe se é possível rejeitar anexos acima de um determinado tamanho?

Sim, é possível, assim como fazer upload pela interface do usuário, não apenas por e-mail. Existem limites padrão definidos nas configurações de administrador que podem ser ajustados. Esses só funcionam até um certo valor, para aumentá-los além de um certo nível deve ser feito por meio de script de linha de comando.

Aqui está o tópico onde descobri isso:

> [@How to change upload limit by command line](https://meta.discourse.org/t/how-to-change-upload-limit-by-command-line/313231):
>
> Good day, There seems to be a bug with the video upload system, have set max file upload size to 75 mb for .mp4 but when attempting to upload a 36.1 MPEG-4 error reports: I know video uploading isn’t really recommended/supported for discourse anyway but just reporting this seems to be a bug for if this is supposed to be able to work.

Guia:

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435):
>
> bookmark This guide explains how to change the maximum attachment upload size for self-hosted Discourse instances. person_raising_hand Required user level: System Admin The default attachment upload size limit is 10MB If you are self-hosting Discourse and need to allow uploads larger than 10 MB, follow the steps below. Changing the upload size Connect to your server: Use SSH to access your server’s command line interface. Edit the configuration file: Navigate to the configurati…

---

_[View the full topic](https://meta.discourse.org/t/can-discourse-accept-attachments-when-using-emails-to-create-new-category-topics/322980)._
