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

Comments

1 comment

  • Avatar
    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
    Comment actions Permalink

Please sign in to leave a comment.