# Issue with upload file size limit

**URL:** https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272
**Category:** Support
**Tags:** uploads
**Created:** [May 6, 2026, 5:35am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272 "2026-05-06T05:35:42Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![yingdong](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yingdong](https://meta.discourse.org/u/yingdong)
#### Post date: [May 6, 2026, 5:35am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/1 "2026-05-06T05:35:43Z")

</div>

I need to upload files larger than 100MB. Currently, I have already modified `Max image size KB` and `Max attachment size KB`, and I plan to continue modifying `upload_size` in `app.yml`. However, I noticed that `upload_size` is not present in the `params` section of `app.yml`. Below is the snippet I copied:

```
params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "768MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

  ## Which Git revision should this container use? (default: latest)
  #version: latest

env:

```

How should I proceed with the modification in this case? Also, I couldn’t find the location of `client_max_body_size`.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 6, 2026, 6:09am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/2 "2026-05-06T06:09:50Z")

</div>

Hi,

You need to _add_ them under `params` 🙂

---

<div class="post-metadata">

### Author: ![yingdong](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yingdong](https://meta.discourse.org/u/yingdong)
#### Post date: [May 6, 2026, 6:39am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/3 "2026-05-06T06:39:46Z")

</div>

Thank you for the reply. I have now successfully modified `app.yml` and rebuilt the container. The changes I made are as follows:

```
  ## Which Git revision should this container use? (default: latest)
  #version: latest
  ## Maximum upload size (default: 10m)
  upload_size: 300m

```

However, the upload file size limit issue still seems to be unresolved. When I try to upload a 110MB `.zip` file, I still get the following error message:  
Sorry, that file is too big (maximum size is 300 MB). Why not upload your large file to a cloud sharing service, then paste the link?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 6, 2026, 6:46am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/4 "2026-05-06T06:46:54Z")

</div>

That error is coming from elsewhere , do you happen to have a reverse proxy in front of discourse?

---

<div class="post-metadata">

### Author: ![yingdong](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yingdong](https://meta.discourse.org/u/yingdong)
#### Post date: [May 6, 2026, 6:58am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/5 "2026-05-06T06:58:15Z")

</div>

It’s possible. Our domain registrar is Cloudflare, and the domain is using Cloudflare’s free plan for DNS resolution. I wonder if that could be the issue.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 6, 2026, 7:41am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/6 "2026-05-06T07:41:38Z")

</div>

That could be the likely cause, cloudflare by default has a 100mb size limit iirc. You can turn off their protection temporarily and try again.

---

<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: [May 6, 2026, 7:56am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/7 "2026-05-06T07:56:20Z")

</div>

Hit this very recently with of all things a car toll payment system that required you to upload documents to register your car.

They used cloudflare and if you uploaded documents that were too big, instead of a nice app error you got a cloudflare 502!

---

<div class="post-metadata">

### Author: ![yingdong](https://avatars.discourse-cdn.com/v4/letter/y/cab0a1/32.png) [@yingdong](https://meta.discourse.org/u/yingdong)
#### Post date: [May 6, 2026, 9:23am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/8 "2026-05-06T09:23:10Z")

</div>

After changing the Cloudflare settings, articles larger than 100MB can now be uploaded successfully.

---

<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: [June 5, 2026, 9:23am UTC](https://meta.discourse.org/t/issue-with-upload-file-size-limit/402272/9 "2026-06-05T09:23:23Z")

</div>

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