How do I solve the issue (new row violates row-level security policy for table "products")? #3690
Replies: 4 comments 4 replies
-
|
@ict-biocare can you share your RLS of products table? |
Beta Was this translation helpful? Give feedback.
-
|
code: '42501', |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Yeah, a storage upload is just an create policy "authenticated can upload to products"
on storage.objects for insert to authenticated
with check (bucket_id = 'products');If you read the file back right after uploading (or the client lists it), add a matching I wrote up the full breakdown of this error here: https://www.guardlayer.io/blog/supabase-new-row-violates-rls-policy |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to upload an image to Supabase in the 'products' bucket but it keeps showing this alert.
I have already created policies to handle the CRUD functions but the alert keeps popping up.
How do I solve this issue??
Beta Was this translation helpful? Give feedback.
All reactions