Python: Upload a file

Uploads a file to an existing bucket.

Parameters

Examples

Upload file using filepath

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