plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Files larger than 5mb are not uploaded (self host)

Open hfzi opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

I tried everything, I increased all FILE_SIZE_LIMITs, I made 5242880000, I made MAX_FILE_SIZE = 5000 * 1024 * 1024, but I cannot upload files over 5mb. I solved the 5mb error in the frontend, but in the backend I get an error, it returns 400

Steps to reproduce

  1. Click attach button
  2. Select file
  3. 400 error backend

Environment

Production

Browser

None

Variant

Self-hosted

Version

0.22

hfzi avatar Sep 04 '24 14:09 hfzi

Same here, I changed values on the docker-compose, apiserver/.env, apiserver/plane/settings/common.py and even the nginx.conf container but still can't upload files bigger than 5MB.

Same version as OP.

lucas-strummer avatar Sep 05 '24 11:09 lucas-strummer

Same here, I changed values on the docker-compose, apiserver/.env, apiserver/plane/settings/common.py and even the nginx.conf container but still can't upload files bigger than 5MB.

Same version as OP.

Did you find a solution dude?

hfzi avatar Sep 11 '24 10:09 hfzi

I thought this would be a fun one to dig through. The short version of resolving this is to set the filesize in the .env and the apiserver/.env files ahead of running the docker compose -f docker-compose-local.yml up -d command. Doing that has let me upload larger files consistently.

It doesn't look like the values in packages/editor/src/core/plugins/image/utils/validate-file.ts or web/core/constants/common.ts are used for anything other than showing the error when Plane is run using the default values.

I was running the preview branch when digging through this.

gabe3886 avatar Oct 06 '24 20:10 gabe3886

Hi @hfzi, this issue has now been fixed and is live in both, cloud and self-hosted versions. I am closing this issue for now, but feel free to re-open it in case there's something more you'd like to discuss.

aaryan610 avatar Nov 27 '24 13:11 aaryan610