Skip to main content
Version: v1-dev

createBucket()

Creates a new Storage bucket

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

Notes

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

Examples

Create bucket

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