Git Product home page Git Product logo

Comments (8)

Peterkrol12 avatar Peterkrol12 commented on July 22, 2024

Do we have an update on this issue? Been a while since last activity

from appsmith.

sondermanish avatar sondermanish commented on July 22, 2024

Hi! @Peterkrol12 In order to allow upload of larger files we would need to change a few settings to allow the web-server to send larger files. Could you elaborate on your deployment setup?

from appsmith.

Peterkrol12 avatar Peterkrol12 commented on July 22, 2024

Hi @sondermanish - We have a few appsmith instances running using the EC2 AMI

from appsmith.

sondermanish avatar sondermanish commented on July 22, 2024

Thanks! @Peterkrol12
Since the file size upload limit defined by default in the web-server configuration (Nginx) is less that what your current usages are, the web-server is truncating the files, hence the parsing doesn't happen.

We could try increasing the file upload limit using this variable in nginx configuration:
client_max_body_size . Adding a stack overflow issue for further understanding. Let us know if this works.
Or if the web-server is caddy then we would have to look for separate variables.
Let us know if you require help with setting up the configuration we can get on a call if required. Thanks!

from appsmith.

Peterkrol12 avatar Peterkrol12 commented on July 22, 2024

Hi @sondermanish - Thanks for your response!

I must say, I am not entirely following your suggestion. As provided previously, we are using the Appsmith AWS AMI on multiple instances. To access these instances, we only defined some DNS A records to point towards the public IP addresses of the instances. The only web server configuration we have, is in the AWS AMI of Appsmith itself. We looked through the instance and docker container and found a configuration file for Caddy called caddy-reconfigure.mjs. In this file, some properties including the Caddy client_max_body_size equivalent are defined. This property is set as follows:

  request_body {
    max_size ${process.env.APPSMITH_CODEC_SIZE || 150}MB
  }

So if done nothing, it should default to 150MB, but to verify, we looked at our docker.env in our EC2 instance. The APPSMITH_CODEC_SIZE property was defined in the docker.env, but it had leading # and was therefore commented out.

Am I looking at the wrong thing, or am I misunderstanding something?

from appsmith.

sondermanish avatar sondermanish commented on July 22, 2024

Thanks for the response @Peterkrol12
The APPSMITH_CODEC_SIZE is also used to control this spring variable spring.webflux.multipart.max-in-memory-size
which in essence is controlling the size of multipart request, by default it's set at 150 MB, we can try increasing that. Since this is also controlling the caddy file size, it would be easy for us to tweak this. Could you try increasing the value from 150 to a desired file size value?

from appsmith.

Peterkrol12 avatar Peterkrol12 commented on July 22, 2024

Thanks for the continues support @sondermanish!

I changed the APPSMITH_CODEC_SIZE environment variable in the docker.env to 500 and restarted Appsmith. Afterwards I tried the file upload part of our application and received the same exception.
image

from appsmith.

sondermanish avatar sondermanish commented on July 22, 2024

@Peterkrol12 Apologies it's not working for you, let me reproduce this and find an RCA for you.

from appsmith.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.