New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Payload too large #21
Comments
What is the size of the file? |
1.5mb |
The limitation comes from the middleware // ./config/middlewares.js
module.exports = {
// ...
{
name: 'strapi::body',
config: {
jsonLimit: '10mb',
},
},
// ...
} See the middleware doc |
I updated the config section of the doc |
Merci :) |
Hi. I just had the same error message, and I've opened my config/middlewares.js file, but I see an array of strings, not a json object. This is the content:
How should I add the code @Baboo7 mentions above?
|
@molul you have to replace the string with the object, like this: module.exports = [
'strapi::errors',
'strapi::security',
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
{
name: 'strapi::body',
config: {
jsonLimit: '10mb',
},
},
'strapi::session',
'strapi::favicon',
'strapi::public',
]; |
Worked like a charm. Thanks! |
Hi there,
First, thanks for this promising plugin :)
I'm experimenting an issue when i try to import a JSON or CSV, the browser is raising a 413 HTTP error (payload too large).
Is there a way to increase the limit ?
The text was updated successfully, but these errors were encountered: