makeplane / makeplane/plane

[bug]: `env.doc_upload_size_limit` does not correctly override `FILE_SIZE_LIMIT`

Open
#9,035 1 comment 0 reactions 1 assignee View on GitHub

@pratapalakshmi is already working on this.

Since May 11, 2026.

🐛bug plane
Dominant language
TypeScript
Stars
59.6k
Forks
5.8k
Avg merge
1d 22h
Merged PRs (30d)
49

Description

Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

When setting doc_upload_size_limit through values.yaml, the document upload size limit does not appear to be applied correctly.

Example:

env:
  doc_upload_size_limit: "104857600"

After rendering the Helm chart, the generated Secret/ConfigMap contains:

stringData:
  FILE_SIZE_LIMIT: "5242880"

However, the effective upload size limit does not change as expected.

The limit only worked correctly after using file_size_limit instead:

env:
  file_size_limit: "104857600"

So doc_upload_size_limit appears to either not map correctly to the effective FILE_SIZE_LIMIT, or it is being ignored in favor of file_size_limit.

Expected behavior

Setting this in values.yaml:

env:
  doc_upload_size_limit: "104857600"

should correctly configure the effective file upload size limit.

The rendered value should match the configured value and be applied by the application:

stringData:
  FILE_SIZE_LIMIT: "104857600"

Actual behavior

Using:

env:
  doc_upload_size_limit: "104857600"

does not correctly override the effective upload size limit.

The limit only works when using:

env:
  file_size_limit: "104857600"
Steps to reproduce
  1. Deploy Plane using the Helm chart.

  2. Set a custom document upload size limit in values.yaml:

env:
  doc_upload_size_limit: "104857600"
  1. Apply the Helm release:
helm upgrade --install plane-app <chart-name> \
  --namespace plane \
  -f values.yaml
  1. Check the rendered Secret/ConfigMap:
helm get manifest plane-app -n plane | grep -A 5 FILE_SIZE_LIMIT
  1. Confirm that FILE_SIZE_LIMIT is not correctly replaced with the configured doc_upload_size_limit value.

  2. Test uploading a file larger than the default limit.

  3. Notice that the configured doc_upload_size_limit is not applied.

  4. Change the configuration to use file_size_limit instead:

env:
  file_size_limit: "104857600"
  1. Apply the Helm release again:
helm upgrade --install plane-app <chart-name> \
  --namespace plane \
  -f values.yaml
  1. Test the upload again and confirm that the custom size limit now works.

Workaround

Use file_size_limit instead of doc_upload_size_limit:

env:
  file_size_limit: "104857600"

Suggested fix

The Helm value env.doc_upload_size_limit should correctly map to the effective FILE_SIZE_LIMIT value, or the documentation should be updated to indicate that env.file_size_limit is the correct setting to use.

For example, this configuration:

env:
  doc_upload_size_limit: "104857600"

should render and apply:

stringData:
  FILE_SIZE_LIMIT: "104857600"
Environment

Production

Browser

None

Variant

Self-hosted

Version

2.5.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.