Is there a way to standardize the URLs of the images I upload?

Bolide
Bolide Member Posts: 1
edited December 2023 in Developer APIs

When I upload images to Cloudinary, I've noticed that each image generates a unique URL. This variation in the URLs not only reflects in the name I assign to the image but also in the number that Cloudinary automatically generates.

FOR EXAMPLE:

Imagen 1:

https://res.cloudinary.com/dtg7fga8i/image/upload/v1698345266/Imagen1

Imagen2:

https://res.cloudinary.com/dtg7fga8i/image/upload/v1698346268/Imagen2

I would like to know if there's a way to standardize the URLs of the images I upload to Cloudinary, or if there's any configuration that would allow me to maintain consistency in the image links.

Answers

  • Vdeub
    Vdeub Member, Cloudinary Staff Posts: 78

    Hi @Bolide,

    When uploading an asset, the JSON response will always return the URL with their version component (v1698345266 and v1698346268 ) in your URLs. However, as documented here, the version component is optional so if you want some consistency, you can always remove it.

    If you use an SDK to create your URLs, then the version component will be omitted by default.

    Hope that helps.

    Best,

    Loic