I'm currently stuck to this problem, and I hope you can help me because to this undefined upload
Answers
-
Hi @JM_22,
In order to better understand the issue, we need some more information.
Can I please ask you to provide more details about the problem you're encountering?Can you please share the error stack trace from your code, or the exact error message you see returned by our API and confirm your cloud name? I can't find any errors in our logs.
You can open a new private ticket if you don't want to expose that information publicly.
Looking forward to your response.
Best,
Tamara0 -
I'll appreciate your comment about my problem, I'll just solve it a while ago
import { v2 as cloudinary } from 'cloudinary';
// Configure Cloudinarycloudinary.config({ cloud_name: process.env.CLOUDINARY_CLOUD_NAME, api_key: process.env.CLOUDINARY_API_KEY, api_secret: process.env.CLOUDINARY_API_SECRET,});
// Export the upload methodexport const upload = cloudinary.uploader.upload;
// Optionally, you can export the entire cloudinary object if neededexport default cloudinary;
just to add the const upload = cloudinary.uploader.upload
in my config()0