Comments (8)
Do we have an update on this issue? Been a while since last activity
from appsmith.
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.
Hi @sondermanish - We have a few appsmith instances running using the EC2 AMI
from appsmith.
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.
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.
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.
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.
from appsmith.
@Peterkrol12 Apologies it's not working for you, let me reproduce this and find an RCA for you.
from appsmith.
Related Issues (20)
- [Bug]: appsmith backup fails while taking backup
- [Feature]: Authentication method SAML and/or OIDC optional for business model HOT 1
- [Bug]: Cross referencing: On deleting a branch, and bringing it back in, lot of uncommitted changes show up HOT 1
- [Bug]: Canvas glitches when a modal widget is triggered from the entity explorer
- [Bug]: Canvas auto-scroll is not smooth
- [Bug]: Delay in loading modal widget name component when launched from the omnibar
- [Bug]: Cross referencing: Unable to see Response and Schema tabs in the shared app. HOT 1
- [Bug]: Before a git connected app completes loading, if we traverse to home page, we see an error toast 'Not Found'
- [Feature]: duckdb support
- Working on Flaky/Failure RBAC test - GroupRoles
- Working on Flaky/Failure RBAC test -CreatePermission HOT 1
- [Bug]: Cross referencing - on git importing an application, a first change to be committed is seen on master though no change was done
- [Bug]: Merging a branch has no affect on Rest APIs
- Context is not retained while changing app settings
- second
- [Bug]: UUID function not working as expected
- [Task]: Add support for JIRA integration HOT 1
- [Task]: Add support for JIRA integration HOT 3
- Cypress import remove for each file and provide common config
- chore: Fix typos in the codebase. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appsmith.