Skip to content

[bug] How to increase allowed attachment size? FILE_SIZE_LIMIT not working #3392

Closed

Description

@Plorenzo

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When a image bigger than 5MBs is uploaded the system give an error.
File size too large. Please select a file smaller than 5MB.
Screenshot 2024-01-17 at 20 15 17

To increase this limit, I tried to change FILE_SIZE_LIMIT to 15728640 in .env a restart the services, both with ./setup.sh script and directly docker compose up -f and after the services are up again the same error happens when trying to upload a big file.

Steps to reproduce

Create an issue an try to upload a 6MB file

Browser

Safari, also in Firefox

Version

Self-hosted

Activity

  1. niltonvasques commented on Jan 23, 2024

    @niltonvasques

    @Plorenzo I had also to increase the Nginx max body size:

    image

  2. Plorenzo commented on Jan 24, 2024

    @Plorenzo
    Author

    I just check and the nginx config in the container is correctly updated already from the .env file

  3. mguptahub commented on Feb 6, 2024

    @mguptahub
    Contributor

    @Plorenzo hope you have changed the .env file

  4. Plorenzo commented on Feb 6, 2024

    @Plorenzo
    Author

    @mguptahub please refer to my original comment

    ... I tried to change FILE_SIZE_LIMIT to 15728640 in .env a restart the services ...

  5. cendyne commented on Jul 23, 2024

    @cendyne

    I ran into this too. Good news, read through.

    I have verified that setting FILE_SIZE_LIMIT and restarting updates the nginx.conf in the proxy container.

    For example, mine looks like

    ...
            client_max_body_size 134217728;
    ...
    

    When I upload a file that is 20 MB, it failed with a 413 Request Entity Too Large.
    But, it would not show up in the "proxy" container logs. Why is that?

    Turns out, I had to update the outer nginx layer that reverse proxied towards the container, as the outer nginx layer handles HTTPS with certbot.

    (host nginx) -> [docker nginx proxy container -> api container]
     ^^^^^^^^^^
    Failure was in the host.
    

    If you run into this, check every layer of your implementation!

  6. vihar commented on Nov 1, 2026

    @vihar
    Contributor

    @cendyne nailed it. FILE_SIZE_LIMIT now sets the limit in the API, the web app and Plane's bundled proxy. If uploads still fail with a 413, a reverse proxy in front of Plane is rejecting them, so raise its limit too, for example client_max_body_size in nginx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions