Problem uploading multiple images in node.js/Mongodb with Multer and Cloudinary

Comments

1 comment

  • Avatar
    Aditi Madan

    Hi Francisco,

    Cloudinary uploader is asynchronous and it might not have finished executing when you are printing the console.log outside the scope of the uploader but it eventually executes and returns the result inside the uploader. Here is an example of implementing it using a Promise and then() call: https://stackoverflow.com/questions/43701013/cloudinary-api-resolve-promise

    Hope this helps.

    Regards,

    Aditi

    0
    Comment actions Permalink

Please sign in to leave a comment.