增加最大文件大小

早上好,

我遇到了一个文件上传问题,似乎无法解决。

我正在通过 Google Cloud 上的虚拟机中的 Docker 运行 Discourse 实例。

我现在启用了通过 GCS 使用 S3 进行文件上传和 Discourse 备份,并且在遵循 Configure an S3 compatible object storage provider for uploads thread 上的说明后,这些功能运行正常。我可以在存储桶中看到上传的文件,并且当我查看上传 URL 时,所有上传都显示来自 CDN 的正确 URL,因此它们似乎可以正确地从存储桶中提取。

然后我遵循了 Change the maximum attachment/upload size thread 上的说明,并在 app.ymlparams 下添加了以下内容:

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: "1024MB"

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

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

  ## Maximum upload size (default: 10m)
  upload size: 1000m

然后我转到 Settings > Files 并输入了以下内容:

但是当我尝试将一个 12.5MB 的 PDF 上传到帖子时,我收到了这个:

另外两个 6-7MB 的 PDF 文件上传成功,并且是通过 S3 存储桶按预期上传的,并返回了 CDN 地址。所以我非常困惑,任何帮助都将不胜感激。提前感谢。