Skip to main content
Version: v0

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: none
    • objects permissions: update and select

Examples

Move file

final res = await supabase
.storage
.from('avatars')
.move('public/avatar1.png', 'private/avatar2.png');