Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: the pagination of storage is not functioning on self-hosted systems (#21925)

Austin Tran6e8538f95756
diff --git a/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts b/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts
index d4dc551668b..26fa43271f3 100644
--- a/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts
+++ b/apps/studio/pages/api/storage/[ref]/buckets/[id]/objects/list.ts
@@ -23,7 +23,7 @@ const handlePost = async (req: NextApiRequest, res: NextApiResponse) => {
const { id } = req.query
const { path, ...params } = req.body
- const { data, error } = await supabase.storage.from(id as string).list(path, params)
+ const { data, error } = await supabase.storage.from(id as string).list(path, params.options)
if (error) {
return res.status(500).json({ error: error.message })
}