How to list all images inside folder ?

itsjustausername
itsjustausername Member Posts: 2
edited June 12 in Developer APIs

Hi, I am having issue connecting to cloudinary to fetch images inside folder. All other requests inside postman works fine, except this, I keep getting 404 html response.

Please tell me what I did wrong here. Thank you

Postman API: https://www.postman.com/cloudinaryteam/workspace/programmable-media/request/16080251-29a03c63-827e-4627-9847-4baf1b162b76

Tagged:

Answers

  • carlevison
    carlevison Administrator, Cloudinary Staff Posts: 7

    Hi - it's likely that your product environment is set up for fixed folder mode - see https://cloudinary.com/documentation/folder_modes

    You can check it on your Programmable Media dashboard.

    If so, the 'asset_folder' parameter is not supported. Instead, you should use the search method with the 'folder' expression field.

  • itsjustausername
    itsjustausername Member Posts: 2

    Thank you, worked well

    curl --location 'https://api.cloudinary.com/v1_1/<cloudname>/resources/search?expression=folder%3DFolderName%2F*' --header 'Authorization: <Header Auth>=='