#Request entity too large

1 messages · Page 1 of 1 (latest)

worthy pilot
#

Hey, I'm trying to create / save an image just a bit larger than 2MB via the Rest API. Unfortunately I get the error every time: "PayloadTooLargeError: request entity too large"
I use Payload v2.0.0.

I have already tried to add the following lines to my payload config. unfortunately without any changes.

const limit = 1024 * 1000 * 100;
express: {
json: {
limit: limit,
},
},
upload: {
limits: {
fileSize: limit,
},
},

i would be grateful for any tips or help!

Thanks in progress,
Christian