You can now view the folder size and number of assets included in the folder from the Media Library UI. To do this, make sure that your preview pane is open - just click on Open Preview appearing as an 'eye' button on the top right side of the screen. Then, simply click once on the folder and you will then see the information presented in the preview pane.
Good question that I also want a response to. Anyone out there?
We did not find a way. So we created this script
Sorry for the very late reply, we have noticed that this request was left unattended.
Getting the size of a folder (from API and the UI) is on our road map. While no ETA for it yet, i'll gladly update you in here as well once the feature is ready.
Hello Maor, any update on this? I would like to use this feature in my paid Cloudinary account
There's still no ETA for this feature. It is going to be a part of our extensive capabilities update we intend to introduce later in the year (e.g., new Media Library, advanced search and reports).
I'll update this thread once it is ready and published:)
Is this possible now? ie getting the sum of all the sizes uploaded to a folder?
This thread is 3 years old, I assume something like this exists now?
Here is a sample code to get the folder size:
RE: You can now view the folder size and number of assets included in the folder from the Media Library UI..
Is there an API call to get this?
We currently do not support this via the API, however it is on our roadmap.
Is there any ETA now or Update?
Currently, there is no direct API call you can make to get this info, as Millie wrote above you can view the folder size and number of assets included in the folder from the Media Library UI, or you can use this workaround via the API - you can list all resource within a specific folder using the prefix parameter. The API response includes a bytes parameter for each resource, which you can use to calculate the overall size of the folder. For example https://gist.github.com/shirlymanor/8cd8b95e1132be19eb8cd5e7363828ff
Post is closed for comments.