Home

Copy an existing file

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

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