JavaScript: Download a file

Examples

Download file

const \{ data, error \} = await supabase
  .storage
  .from('avatars')
  .download('folder/avatar1.png')