Recover all photos in a folder
Hello
To retrieve a photo use
return getInstance () url () generate ("public_id")..;
It returns me the url of the image.
I need all images in a folder. It's possible? To avoid having to make multiple requests picking one by one.
0
-
I also want to know which method to use to whether a public_id there
0 -
Although it's on our road map to add, requesting all images from a specific directory is not yet supported.
Meantime, you can assign a unique tag to all images located in the same dir and list it from the client-side using:
String result = cloudinary.url().type("list").format("json").generate("tag");
Will result with:
http://res.cloudinary.com/<your_cloud_name>/image/list/tag.json
Returns A json of all matching resources.
Note that you should first enable 'Image list' under Restricted image types in your security settings page
0
Post is closed for comments.
Comments
2 comments