Request entity too large #4291
Unanswered
AntoineGGG
asked this question in
Q&A
Replies: 1 comment 2 replies
-
For now I fix this using:
But not sure it's the proper way to do it... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, I'm almost done with my work on grapesJS, but get an issue with the autosave and my req.body size.
When I store the editor Content the req.body contain:
gjs-components
gjs-assets
gjs-css
gjs-style
gjs-html
The problem is, I think, when send all of them into the request, the body is too large for Node/Express.
Is there a way to solve this ?
I don't paste the gjs-assets lines here cause too long but I think you can see what I want to mean.
The thing is I load asset with a custom method when the component is rendered, so I don't need to save the gjs-assets.
Is there a way to use beforeSend to remove the gjs-assets line ? Or something similar ?
I already tried to use this on my back-end:
app.use( bodyParser.urlencoded({ extended: true, limit: "50mb", parameterLimit: 1000000000000, type: "application/json", }) ); app.use(express.json({ limit: "50mb" })); app.use(express.urlencoded({ limit: "50mb" }));
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions