# Problem about attachment file size

**URL:** https://meta.discourse.org/t/problem-about-attachment-file-size/237679
**Category:** Support
**Created:** [August 31, 2022, 10:53am UTC](https://meta.discourse.org/t/problem-about-attachment-file-size/237679 "2022-08-31T10:53:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yaoqi\_Yan](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@Yaoqi\_Yan](https://meta.discourse.org/u/Yaoqi_Yan)
#### Post date: [August 31, 2022, 10:53am UTC](https://meta.discourse.org/t/problem-about-attachment-file-size/237679/1 "2022-08-31T10:53:33Z")

</div>

I set max attachment size to 40MB(40960). When upload 18MB file, It shows “Sorry, that file is too big(maximum size is 40MB).”

Does anybody know what happened? what can I do to fix it?

 ![Screen Shot 2022-08-31 at 18.48.10](https://global.discourse-cdn.com/meta/original/4X/c/9/d/c9de240663d7082b184ac2b07284955de30e0803.png)

 ![Screen Shot 2022-08-31 at 18.47.32](https://global.discourse-cdn.com/meta/original/4X/b/0/f/b0fa3e6803867f6ed6e70fcecdf18822645a0d54.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 31, 2022, 11:04am UTC](https://meta.discourse.org/t/problem-about-attachment-file-size/237679/2 "2022-08-31T11:04:35Z")

</div>

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/changing-max-attachment-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…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 30, 2022, 11:05am UTC](https://meta.discourse.org/t/problem-about-attachment-file-size/237679/3 "2022-09-30T11:05:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
