Uploading image files to a specific folder?

Comments

1 comment

  • Avatar
    Michal Kuperman

    Hi Royce,

    Please include the Node.js SDK like this: cloudinary = require('cloudinary').v2 (including the v2).

    Then use this code to upload an image to the 'my_folder' folder:

    cloudinary.uploader.upload("file", 
    { folder: "my_folder" },
    function(error, result) { console.log(result, error); });

    Let us know if you need any further assistance.

     

    1
    Comment actions Permalink

Please sign in to leave a comment.