PayloadTooLargeError: request entity too large #6625
-
When I try to create a big document via the api I get an exception Is there an easy way to set this limit from outside of payload or do I have to create my own global api endpoint with all middleware deactivated? Are there other options? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: express: {
json: {
limit: 1234, //Limit in bytes
},
}, |
Beta Was this translation helpful? Give feedback.
Update:
I was able to set the json body size limit in the
payload.config.ts
by adding the following field: