Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Javascript Reference v1.0

List all files in a bucket

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

const { data, error } = await supabase
  .storage
  .from('avatars')
  .list('folder', {
    limit: 100,
    offset: 0,
    sortBy: { column: 'name', order: 'asc' },
  })