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


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:

    Hope this helps.



    Comment actions Permalink

Please sign in to leave a comment.