Skip to content

Get bucket size #2104

@PaperPrototype

Description

@PaperPrototype

Description

As noted here https://www.answeroverflow.com/m/1186881391233863751

Basically some way to get the current bucket size via the storage API. Something like supabase.storage.from("mybucket").getSize()

Suggested solution

There is seems to already be an RPC function called "get_size_by_bucket", so just reuse that?

Alternative

Calling supabase.rpc("get_size_by_bucket") manually, though it is not documented and I don't know if it will break in future versions (or if it is already broken in the latest release)

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions