# Maxmum upload size

**URL:** https://meta.discourse.org/t/maxmum-upload-size/398601
**Category:** Support
**Tags:** uploads
**Created:** [March 17, 2026, 7:20am UTC](https://meta.discourse.org/t/maxmum-upload-size/398601 "2026-03-17T07:20:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [March 17, 2026, 7:20am UTC](https://meta.discourse.org/t/maxmum-upload-size/398601/1 "2026-03-17T07:20:31Z")

</div>

I edited discourse.conf inside the app container to set 512m max upload size. I set 512m in the Admin panel also. But I cannot upload a PDF 30 MB in size as Discourse says ‘512m maximum allowed’. Which does not seem right.

What to do? Have I edited the wrong nginx configuration file?

Urk - after a reboot the dsiscourse.conf file reverts to the original. No wonder it does not work. But what causes this replacement?

---

<div class="post-metadata">

### Author: ![Andro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andro/32/173721_2.png) [@Andro](https://meta.discourse.org/u/Andro)
#### Post date: [March 17, 2026, 8:05am UTC](https://meta.discourse.org/t/maxmum-upload-size/398601/2 "2026-03-17T08:05:42Z")

</div>

Ah - I just found out about using ‘outlets’ to make permanent nginx changes. I feel confident with enough trying I can get that going.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 17, 2026, 8:21am UTC](https://meta.discourse.org/t/maxmum-upload-size/398601/3 "2026-03-17T08:21:35Z")

</div>

It’s as simple as an app.yml change:

> [@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…

(In addition to the setting)
