How to increase Cloudinary provider upload size limit in Media above 20Mb?

System Information
  • Strapi Version: v4.16.2
  • Operating System: MacOS Sanoma 14.2.1 and same on Heroku
  • Database: Postgres 16
  • Node Version: v18.16.1
  • NPM Version: 9.7.2

We cannot upload large files using media in Strapi, which are then hosted on Cloudinary. Cloudinary say they have incerased our limits way above what we have in Strapi. I have tried all solutions I can find online. Most solutions refer to plugin.js or middleware.js macFileSize settingsm, but none have an effect, we seem to be limited to 20Mb.

Here is the error. Thanks.

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
{
  message: 'File size too large. Got 24785984. Maximum is 20971520.',
  name: 'Error',
  http_code: 400
}
[2024-01-21 17:04:53.577] error: Entity too large
PayloadTooLargeError: Entity too large
    at /path/to/project/node_modules/@strapi/provider-upload-cloudinary/dist/index.js:45:22
    at /path/to/project/node_modules/cloudinary/lib/utils/index.js:1354:14
    at IncomingMessage.<anonymous> (/path/to/project/node_modules/cloudinary/lib/uploader.js:510:9)
    at IncomingMessage.emit (node:events:525:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)