How can i fetch a whole folder in the client side? I do not want to set up a backend solely for this

Savvi
Savvi Member Posts: 1

I want to import all folders and images inside a folder, recursively. Basically just want to get everything inside the folder in the client side. I have accomplished this with the api in the backend but i can't in the client side as it will expose my keys. How can I go about this?

Answers

  • Tom
    Tom Member, Cloudinary Staff Posts: 94

    Hi @Savvi ,

    Thanks for reaching out.

    You can tag all the assets in the relevant folder and then use Client-side asset lists to retrieve all the assets with that tag. Please be sure to read the Note section if you do decide to use this as this feature is disabled by default and limited to 1000 resources.

    You can also use Cacheable search URLs which will generate a URL which you can use client-side. However, you will still need to pre-generate the URL in the backend.

    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas