Python: Replace an existing file

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

Parameters

Examples

Update file

with open("./public/avatar1.png", "rb") as f:
    response = (
        supabase.storage
        .from_("avatars")
        .update(
            file=f,
            path="public/avatar1.png",
            file_options=\{"cache-control": "3600", "upsert": "true"\}
        )
    )