-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'secure_url') When i uploading image to cloudinary as const response = await uploadFileToCloudinary(file, "Mayank"); console.log(response); Then the response is printed as undefined and the error is provided #671
Comments
const File = require("../model/File"); //local file upload
} function isFileTypeSupported(type, supportedTypes){ async function uploadFileToCloudinary(file,folder, quality){ exports.imageUpload = async(req,res) => {
|
console.log(response) when used with await can be return as a callback right? Can you please try the same? Thanks, |
{ if i am doing the above said then i am getting this error |
Hi @14Mayank2004 , Ensure that the uploadFileToCloudinary function returns the response from Cloudinary. Currently, the function does not return anything. Modify the function to return the upload result: Thanks, |
No description provided.
The text was updated successfully, but these errors were encountered: