This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

How do I rename the public id on upload using Nodejs and upload_stream?

Comments

1 comment

  • Avatar
    Itay Taragano

    You can set the public ID to be whatever you want by using the  public_id  parameter while uploading

    function(buffer, filename, done) {
    var stream = cloudinary.uploader.upload_stream(function(result) { done(result) }, {public_id: "my_picture"});
    stream.write(data);
    stream.end();
    }

    0
    Comment actions Permalink

Post is closed for comments.