# How to increase the upload file size limit? Error shown

**URL:** <https://meta.discourse.org/t/how-to-increase-the-upload-file-size-limit-error-shown/332467>\
**Category:** Support\
**Created:** [October 24, 2024, 3:57am UTC](https://meta.discourse.org/t/how-to-increase-the-upload-file-size-limit-error-shown/332467 "2024-10-24T03:57:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [October 24, 2024, 4:40am UTC](https://meta.discourse.org/t/how-to-increase-the-upload-file-size-limit-error-shown/332467/2 "2024-10-24T04:40:09Z")

</div>

Add this at the bottom of your app.yml in custom commands, then rebuild:

```plaintext
## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  - replace:
        filename: "/etc/nginx/conf.d/discourse.conf"
        from: /client_max_body_size.+$/
        to: client_max_body_size 1000m;

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-increase-the-upload-file-size-limit-error-shown/332467)._
