Unable to post content to strapi which is more than 1 MB in size

I resolved payload is too large issue on strapi graphql , in REST apis after I configure json limit and formlimit its working but not in graphql strapi in new version.

module.exports = {
  //
  graphql: {
    config: {
      endpoint: "/graphql",
      shadowCRUD: true,
      playgroundAlways: false,
      depthLimit: 7,
      amountLimit: 2000,
      apolloServer: {
        tracing: false,
        bodyParserConfig: {
          // koa-bodyparser/node_modules/co-body/lib/json.js#36
          limit: "256mb",
          // koa-bodyparser/index.js#69
          formLimit: "256mb",
          jsonLimit: "256mb",
          textLimit: "256mb",
          xmlLimit: "256mb",
        },
      },
    },
  },
};

This solved it for me in Production after the middleware and plugins config changes worked in development.

This seems to work but on Strapi 4.5.4 (still on this version because of some strapi-design issue) the value needs to be 5 * 1024. I have one 4MB test image and when I put full bytes values, it always passes, even though I put 1 * 1024 * 1024 (1mb). When I do without the last * 1024, then it works - does not pass with 3 * but does pass with 5 *

Official docs even ommit providerOptions so it seems like a mess :confused:

Did you find a solution?