Home

Move an existing file

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

const { data, error } = await supabase
  .storage
  .from('avatars')
  .move('public/avatar1.png', 'private/avatar2.png')