Skip to main content

Comments

12 comments

  • Official comment
    Millie Axelrod

    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.

  • Adrian Rosca

    Good question that I also want a response to. Anyone out there?

    0
  • Aller Media

    We did not find a way. So we created this script

    https://gist.github.com/SindreSvendby/96d98860e2c2c399dc8f53cf55fbe67a

    0
  • Maor Gariv

    Hi guys,

    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.

     

    Best,

    Maor

    0
  • Kamal Khatwani

    Hello Maor, any update on this? I would like to use this feature in my paid Cloudinary account

    0
  • Maor Gariv

    Hi Kamal,

     

    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:)

    0
  • Mark Redman

    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?

    0
  • Shirly Manor

    Here is a sample code to get the folder size:

    https://gist.github.com/shirlymanor/8cd8b95e1132be19eb8cd5e7363828ff

    0
  • Mark Redman

    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?

    0
  • Millie Axelrod

    Hi Mark,

    We currently do not support this via the API, however it is on our roadmap.

    Best,

    Millie

    0
  • David Dülle

    Is there any ETA now or Update?

    0
  • Tamara Yulevich

    Hi David, 

    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

    0

Post is closed for comments.