How can I use a new upload image to overwrite the old one?

Comments

3 comments

  • Avatar
    Aditi Madan

    Hi Rain,

    A new versioned URL is generated each time when the image is uploaded.

    When uploading through the Media Library by default the invalidation is set to true and previous URL is invalidated depending on your account's setting. More information in this article: https://support.cloudinary.com/hc/en-us/articles/202520852-I-ve-replaced-an-existing-image-with-a-new-one-but-my-website-still-shows-the-old-one-Why-is-that-

    Thanks,
    Aditi

    0
    Comment actions Permalink
  • Avatar
    Rain

    Thank for your reply. But except for using Cloudinary Api, is there any other automatic way or any parameters to get the latest image? Thx!!

    0
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi Rain,

    If you are uploading through the UI you will see the latest versioned URL in the Media Library.

    If you are doing client-side or server-side upload you will see the versioned URL in the JSON response.

    Thanks,

    Aditi

    0
    Comment actions Permalink

Please sign in to leave a comment.