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