Get constant URL for using in CSS
Hello,
I want to host my images in cloudinary and access it in my CSS.
The issue I am facing is when I upload the same image again with minor changes, it is giving new URL which I need to change in CSS file again.
is there any way to have the same URL for different uploads of one image.
Thanks,
Rakesh.
-
@Rakesh
Images can be overwritten so that the URLs stay the same. If you are uploading the image from the Media Library, set the public id to the name of the one you want to override and upload the resource. A prompt will be displayed about overriding the original. The same can be done for uploading a resource via the API, here is an example in Ruby:
Cloudinary::Uploader.upload("http://res.cloudinary.com/demo/sample.jpg", public_id: "your_public_id")
0
Post is closed for comments.
Comments
1 comment