JavaScript: Create a bucket

Creates a new Storage bucket

Parameters

Examples

Create bucket

const \{ data, error \} = await supabase
  .storage
  .createBucket('avatars', \{
    public: false,
    allowedMimeTypes: ['image/png'],
    fileSizeLimit: 1024
  \})