# 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:** 1
**Showing post:** 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?

---

_[View the full topic](https://meta.discourse.org/t/maxmum-upload-size/398601)._
