Get row level sec' error when uploading images to supabase from weweb

following this doc https://docs.weweb.io/workflows/actions/supabase/storage-upload-file.html

but when I test my workflow I get an error message:
“new row violates row-level security policy”
cause
statusCode: “403”
error: “Unauthorized”
message: “new row violates row-level security policy”

But I did the policy just like in the docs so I am not sure what I am doing wrong.

is the doc out of date or is it me?


On the supabase upload I had “upsert” switched on.
That was the problem. Supabase needs a different policy if thats on.
Switched it off and now it works