Supabase.Storage.update

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

update(conn, path, file, file_options \\ [])

View Source

Replaces an existing file at the specified path with a new one.

Notes

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

Example

Supabase.storage()
|> Supabase.Storage.from("avatars")
|> Supabase.Storage.update("public/avatar1.png", "/my/avatar/file.png")

Options

HTTP headers, for example :cache_control