from.move()
Moves an existing file, optionally renaming it at the same time.
final res = await supabase
.storage
.from('avatars')
.move('public/avatar1.png', 'private/avatar2.png');
Notes
- Policy permissions required:
buckets
permissions: noneobjects
permissions:update
andselect
Examples
Move file
final res = await supabase
.storage
.from('avatars')
.move('public/avatar1.png', 'private/avatar2.png');