Strapi V4.0.6 Heroku Cloudinary - Error 500 when uploading images in production

I ran into the same error, but not on Heroku. I’m not responsible of the deploying process, but the guy who handled this told me that the .env file is enough for the env variables. Could the problem come from elsewhere?