Issue with Upload File Size Limit

I need to upload files larger than 100MB. So far, I have modified bothMax image size KB and Max attachment size KB , and I plan to also modify upload_size in app.yml . However, I noticed that there is no upload_size in the params section of app.yml . Here is the excerpt 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? Additionally, I was unable to find where client_max_body_size is located.

你好,

你需要将它们添加到 params 下:slight_smile:

感谢您的回复。我现在已成功修改了 app.yml 并重新构建了容器。我所做的更改如下:

  ## 此容器应使用哪个 Git 版本?(默认:latest)
  #version: latest
  ## 最大上传大小(默认:10m)
  upload_size: 300m

然而,上传文件大小限制的问题似乎仍未解决。当我尝试上传一个 110MB 的 .zip 文件时,仍然收到以下错误信息:
抱歉,该文件过大(最大大小为 300 MB)。为何不将您的大文件上传到云存储服务,然后粘贴链接呢?

那个错误来自其他地方,你前面有反向代理吗?

这是有可能的。我们的域名注册商是 Cloudflare,该域名正使用 Cloudflare 的免费计划进行 DNS 解析。我怀疑这可能是问题所在。

这很可能是原因所在。据我所知,Cloudflare 默认有 100MB 的大小限制。您可以暂时关闭其保护功能,然后重试。

最近刚遇到一个汽车通行费支付系统,要求上传文件以注册车辆。

他们使用了 Cloudflare,如果你上传的文件过大,系统没有显示友好的应用错误提示,而是直接返回了 Cloudflare 的 502 错误!

在更改Cloudflare设置后,大于100MB的文章已经可以正常上传。