Oliver Wolfson
ServicesProjectsContact

Development Services

SaaS apps · AI systems · MVP builds · Technical consulting

Services·Blog
© 2025 O. Wolf. All rights reserved.
webdevelopmentjavascript
Postgres SQL commands
Postgres SQL commands for Supabase
April 13, 2024•O. Wolfson

Create a policy that allows authenticated users to write to the avatars bucket.

CREATE POLICY "AllowAuthenticatedWritesToAvatars"
ON storage.objects FOR INSERT
WITH CHECK (auth.uid() IS NOT NULL AND bucket_id = 'avatars'::text);
Tags
#webdev#sql#postgres#database#supabase