ErrorsSupabase Storage

new row violates row-level security policy for storage

Uploads are blocked by storage policies

Storage has its own row-level security, separate from your tables, and no policy permits this upload.

Why it happens

In an AI-built app, specifically

Table policies get attention and storage policies get forgotten, because uploads are usually built later. The bucket exists, the code is right, and nothing is allowed to write to it.

Steps

How to fix it

  1. 01Open the bucket's policies and add one permitting INSERT for the users who should be able to upload.
  2. 02Check the path the policy expects. Policies often key on a folder named after the user id, and the upload has to write there.
Still stuck

If the steps did not do it

An error is one symptom, and the cause is often somewhere else entirely. The broken-app check reads your published site and looks at everything at once — and if it cannot tell either, connecting your repository is what lets Refinar read the code and fix it.

Got feedback that's been waiting for weeks? Ship it today.