How to get all files from specific folder?
I am trying to create a file manager that will start at specific folder from cloudinary then build from there to add/remove files and folders. How to acheive that?
Answers
-
Hi there,
To get all assets in a folder, you can follow the steps here: https://support.cloudinary.com/hc/en-us/articles/202521082-Listing-all-assets-within-a-folder
If you would like to remove files we cover that here:https://support.cloudinary.com/hc/en-us/articles/202520872-How-can-I-delete-assets-from-my-account#:~:text=To%20delete%20all%20assets%20in,folder2%2Fimage%20will%20be%20deleted.
To upload to a particular folder, you can use the optional "folder" parameter on upload:
https://cloudinary.com/documentation/image_upload_api_reference#upload_optional_parameters
Hopefully that helps, please let me know if you have any followup questions.
0