overwrite: false not working in Node.js

Comments

1 comment

  • Avatar
    Itay Taragano

    Hi Michael,

     

    Sorry for the very late reply, we have noticed that this request was left unattended. I guess this is not relevant anymore but for future reference - 

    If the `overwrite` flag is `false`, then if an image with the given public_id is already present, the upload doesn't take place.

    Note that we don't return an error message in such cases, we return the already uploaded image's details, alongside with an additional parameter (`"existing" => true`) which indicates that there was already an image stored on your account, and that means that the upload wasn't processed.

    Thanks,

    Itay

    0
    Comment actions Permalink

Please sign in to leave a comment.