j7nn7k
j7nn7k

Reputation: 18592

Supabase error when trying to upload image

When I try to upload an image to supabase to a public bucket I created I get the following error

new row violates row-level security policy for table \"objects\

I am wondering why that is for a public bucket?

Upvotes: 1

Views: 2644

Answers (3)

Jolly Good
Jolly Good

Reputation: 550

As additional information, you have to give the INSERT RLS policy on the bucket objects.

These are my configurations which work for me: enter image description here

Upvotes: 1

زب مبعر
زب مبعر

Reputation: 19

image

you need to use the secret not the public key to upload files open this image in the top

Upvotes: -1

j7nn7k
j7nn7k

Reputation: 18592

I found out that there are also policys for storage, which are pretty straight forward. Since I did not read about this functionality in the official docs I thought I might save some people some time search around.

Under "Storage" you can find a policies section.

look out for the policies section

Upvotes: 4

Related Questions