Skip to main content

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

Comments

1 comment

  • Itay Taragano

    Hi Wang,

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

    var photo="http://res.cloudinary.com/dcyqpeqbh/image/upload/"+currentPostId+".jpg"

    ...

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

    ...

     

    Please let us know if it works for you?

    0

Post is closed for comments.