List on local bucket does not work
Im wondering if I need to use RLS also for local buckets. Cause any list operation from javascript SDK are not working. Do you have any idea?
7 Replies
Yes you have to meet RLS for all storage API calls.
I have this setting on the bucket

That is a label.
What is the actual policy?

That policy will let you see files with .jpg extension only and you must be anon and not authenticated user.
can you help me? I edited the policy like this... but still no result from list

i want everyone to access the list of files
const { supabase } = ctx;
const { data: galleryImages } = await supabase.storage
.from("partners")
.list(
${parsedInput.partnerId}/gallery
, {
limit: 100,
offset: 0,
});
ok solved
thx