Skip to main content

Get cloudinary image as file object and upload again with different public_id


1 comment

  • Itay Taragano

    Hi Wang,

    You can simply pass the URL of the image to the upload request, something like:

    var photo=""+currentPostId+".jpg"


    Cloudinary.upload(photo, {public_id: postProperties._id}, function(err, res) {



    Please let us know if it works for you?


Post is closed for comments.