Skip to main content

createBucket()

Creates a new Storage bucket

final res = await supabase
.storage
.createBucket('avatars');

Notes#

  • Policy permissions required:
    • buckets permissions: insert
    • objects permissions: none

Examples#

Create bucket#

final res = await supabase
.storage
.createBucket('avatars');