Issue with upload file size limit

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.

Hi,

You need to add them under params :slight_smile:

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?

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

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.

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.

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!

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