© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
Champ

Getting Unauthenticated Error While uploading files to a public bucket

Hey! I'm developing an flutter application and using supabase storage buckets to store some images. These images are uploaded by authenticated users from the app.
To accommodate this,
1. I have made the storage bucket 'Public'
2. I have added policy to allow writes from authenticated users. CREATE POLICY "allow unauthenticated users to profile" ON "storage"."objects" WITH CHECK ((bucket_id = 'profiles'::text));

But still getting error, Unhandled Exception: StorageException(message: Invalid Compact JWS, statusCode: 403, error: Unauthorized)

Has anyone faced the similar situation before. Appreciate any help.
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

Error while uploading image to storage bucket
SupabaseSSupabase / help-and-questions
6mo ago
Bulk Uploading to a Bucket
SupabaseSSupabase / help-and-questions
7mo ago
Network error when uploading to storage bucket
SupabaseSSupabase / help-and-questions
4y ago
Issue While uploading to bucket - Is return data changed?
SupabaseSSupabase / help-and-questions
4mo ago