# Change the max size of uploads/attachments | Discourse Modify upload attachment size

**URL:** https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317
**Category:** Sysadmins
**Tags:** chinese-translation
**Created:** [June 14, 2023, 2:57pm UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317 "2023-06-14T14:57:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [June 14, 2023, 2:57pm UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/1 "2023-06-14T14:57:27Z")

</div>

Discourse attachment upload size requires modifying the configuration file and restarting.

The official post is on: [Change the maximum attachment/upload size - sysadmin - Discourse Meta](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435).

 ![](https://global.discourse-cdn.com/meta/original/4X/9/4/4/944224075fedc601f5e440d492f2c9743548ac5c.png)  
The default upload size is 10 MB.

You need to add the parameter above to the Discourse configuration file and recompile.

After making the changes, navigate to the directory: `/var/discourse` and run the command:

```plaintext
./launcher rebuild app

```

to recompile.

## Admin Control Panel Modification

Modifying only the configuration file above is not enough; you also need to adjust it within the admin control panel.

 ![](https://global.discourse-cdn.com/meta/original/4X/b/2/3/b2326da31168501b902840e3e0e46dbdd5964804.png)  
After completing the modifications, your Discourse will support larger attachment uploads.

If you have any other questions or need assistance, please visit our website (Chinese): [iSharkFly - 飞鲨](https://www.ossez.com/t/discourse/14511)

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [September 12, 2023, 12:32am UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/2 "2023-09-12T00:32:51Z")

</div>

> [@honeymoose](#):
>
> If you have any other questions or need help, please visit our website (Chinese): [Discourse Modify Upload Attachment Size - Discourse - OSSEZ](https://www.ossez.com/t/discourse/14511)

Due to domain name adjustment, the above navigation link has been changed to: [Discourse 修改上传附件的大小 - Discourse - iSharkFly](https://www.isharkfly.com/t/discourse/14511).

---

<div class="post-metadata">

### Author: ![go\_ahead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/go_ahead/32/254371_2.png) [@go\_ahead](https://meta.discourse.org/u/go_ahead)
#### Post date: [September 12, 2023, 12:58am UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/3 "2023-09-12T00:58:47Z")

</div>

It used to be all English, now there’s finally Chinese, great, I support it 😗

---

<div class="post-metadata">

### Author: ![xin\_wang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xin_wang/32/498908_2.png) [@xin\_wang](https://meta.discourse.org/u/xin_wang)
#### Post date: [April 16, 2025, 6:31am UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/4 "2025-04-16T06:31:35Z")

</div>

We have to rebuild again, why does it take a rebuild every time we change something here, so troublesome

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [April 16, 2025, 11:07am UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/5 "2025-04-16T11:07:59Z")

</div>

This is not entirely the case.

As long as the configuration is not modified, reconstruction is usually not necessary.

---

<div class="post-metadata">

### Author: ![xin\_wang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xin_wang/32/498908_2.png) [@xin\_wang](https://meta.discourse.org/u/xin_wang)
#### Post date: [April 17, 2025, 2:06am UTC](https://meta.discourse.org/t/change-the-max-size-of-uploads-attachments-discourse/268317/6 "2025-04-17T02:06:40Z")

</div>

It’s just an Nginx configuration; I directly modified it inside the Docker container. In the future, if I need to change something else, I’ll rebuild it. For now, I’ll use it as is. Since it’s an internal network environment, rebuilding requires connecting to the external internet to pull updates, which is quite troublesome.
