© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
2 replies
Cunibon

Bucket upload getting RLS error

Hello, I am currently trying to upload an image to my bucket from my flutter app.

I setup a RLS policy as per documentation like attached.
My code is calling:
supabaseClient.storage
.from("recipe-image")
.upload(
"RcX9CHGr3C7qciM7",
*myFile,
fileOptions: FileOptions(
upsert: true,
contentType: 'image/jpeg',
),
);

The exact error message is:
StorageException(message: new row violates row-level security policy, statusCode: 403, error: Unauthorized)

The user is logged in and all other RLS for my normal tables work and there are currently no files in the bucket.
The bucket is set to public.

Any idea or pointers?
image.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Slow bucket upload speed.
SupabaseSSupabase / help-and-questions
7mo ago
error rls
SupabaseSSupabase / help-and-questions
4mo ago
upload indicator for bucket uploads
SupabaseSSupabase / help-and-questions
4y ago
RLS for bucket joined with table data
SupabaseSSupabase / help-and-questions
5mo ago