413 Request Entity Too Large

I’m experiencing weird issue with file upload on server behind Cloudflare. When I try to upload an image from browser (chrome & mozilla) I get this error “413 Request Entity Too Large - Cloudflare” which means that the sent request is bigger than 100MB (as said in the docs) but actually the image size is 18MB.

When I send the same request from postman - it works!
I’m sending even bigger files from postman and all are being uploaded successfully.

What could be the problem?


return request.post('/resource/image')
  .set('Authorization', 'Bearer xxx')
  .attach('file', file)
  .then((response) => {

This topic was automatically closed after 14 days. New replies are no longer allowed.