finkinfridom / payload-cloudinary-plugin

Upload media to Cloudinary service
MIT License
54 stars 3 forks source link

How to use this in collection? Please give an example | Please Update Readme #133

Closed SanchitB23 closed 7 months ago

SanchitB23 commented 8 months ago

I have done the configuration part as mentioned in the plugin readme, but still unable to successfully fulfil the request, when trying to upload getting error : ERROR (payload): APIError: Cloudinary: {}

my Server.ts file

app.use(mediaManagement(cloudinaryConfig))

My cloudinaryConfig Object

const cloudinaryConfig = cloudinary.config({ cloud_name: process.env.CLOUDINARY_CLOUD_NAME, api_key: process.env.CLOUDINARY_API_KEY, api_secret: process.env.CLOUDINARY_API_SECRET, });

My payload.config.ts file

plugins: [cloudinaryPlugin()],

finkinfridom commented 8 months ago

hey @SanchitB23 when do you encounter the API Error issue? which version of the plugin and payload are you using?

finkinfridom commented 8 months ago

hey @SanchitB23, are the env variables properly set? There was an issue with the latest updates from payload (you can see here: https://github.com/finkinfridom/payload-cloudinary-plugin/issues/130) and maybe you're facing the same.