Copy an existing file
- Policy permissions required:
buckets
permissions: noneobjects
permissions:insert
andselect
const { data, error } = await supabase
.storage
.from('avatars')
.copy('public/avatar1.png', 'private/avatar2.png')
buckets
permissions: noneobjects
permissions: insert
and select
const { data, error } = await supabase
.storage
.from('avatars')
.copy('public/avatar1.png', 'private/avatar2.png')