System Information
- Strapi Version: 4.0.6
- Operating System: Windows 10
- Database: POSTGRES
- Node Version: 16.13.2
- NPM Version: 8.1.2
Hi,
I connected Strapi with cloudinary following these instructions: @strapi/provider-upload-cloudinary
The upload is working great in local. But as soon as I push it to heroku, I get an “error 500” on upload (see image below)
Any idea why ?
More infos below:
- config/middleware.js
module.exports = [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
- config/plugins.js
module.exports = ({ env }) => ({
// ...
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
},
},
// ...
});
Thank you in advance and have a good day