S
Supabase2mo ago
Gab

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
garyaustin
garyaustin2mo ago
Yes you have to meet RLS for all storage API calls.
Gab
GabOP2mo ago
I have this setting on the bucket
No description
garyaustin
garyaustin2mo ago
That is a label. What is the actual policy?
Gab
GabOP2mo ago
No description
garyaustin
garyaustin2mo ago
That policy will let you see files with .jpg extension only and you must be anon and not authenticated user.
Gab
GabOP2mo ago
can you help me? I edited the policy like this... but still no result from list
No description
Gab
GabOP2mo ago
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

Did you find this page helpful?