How can I update image with auto increase numeric name using java.
I am using cloudinary API with JAVA. We have a requirement to upload images with an auto increasing number automatically. Like 1.jpg, 2.jpg, 3.jpg...
- When I upload the first image(abc.jpg) so it would become 1.jpg.
- When I upload the second image(xyz.jpg) so it would become 2.jpg. Same for others.
does cloudinary provide any kind of solution for this situation?
1
-
Hi,
You would need to keep track of what you want the images to be named on your end, but you can specify the desired public ID of the image in the upload call like so:
Cloudinary::Uploader.upload("abc.jpg", :public_id => "1")
Hope this helps!
0 -
Thank you for your sharing. Thanks to this article I can learn more things. Expand your knowledge and abilities. Actually the article is very practical. Thank you!
0
Post is closed for comments.
Comments
2 comments