Cannot upload files bigger than 200MB

System Information
  • Strapi Version: v4.19.1
  • Operating System: MacOS / Docker
  • Database: Postgres v16
  • Node Version: v16.20.2
  • NPM Version: 8.19.4
  • Yarn Version: –

When uploading data files bigger than 200MB, Strapi returns a HTTP 413 and the message:

The uploaded file exceeds the maximum allowed asset size.

I followed the configuration in the documentation and I see the server picking up these configuration files when I change them. However, the behaviour remains. Content of my config/middlewares.ts:

export default [
  {
    name: "strapi::body",
    config: {
      formLimit: "256mb", // modify form body
      jsonLimit: "256mb", // modify JSON body
      textLimit: "256mb", // modify text body
      formidable: {
        maxFileSize: 1 * 1024 * 1024 * 1024, // multipart data, modify here limit of uploaded file size to 1GB
      },
    },
  },
];

and uploads.ts:

export default {
  upload: {
    config: {
      sizeLimit: 1 * 1024 * 1024 * 1024, // 1GB in bytes
    },
  },
};

Any help very much appreciated!