Supabase.Storage.move

You're seeing just the function move, go back to Supabase.Storage module for more information.
Link to this function

move(conn, from_path, to_path)

View Source

Moves an existing file, optionally renaming it at the same time.

Notes

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

Example

Supabase.storage()
|> Supabase.Storage.from("avatars")
|> Supabase.Storage.move("public/avatar1.png", "private/avatar2.png")