Closed
Description
While JS (document does not state it) responses with id
from uploaded object,
https://supabase.com/docs/reference/javascript/storage-from-upload
Python does not. I am using supabase py for automated bucket upload, and need a id for further processing.
AttributeError: 'UploadResponse' object has no attribute 'id'

Current workaround 🥲
res = supabase.storage.from_(BUCKET_NAME).upload(
path, fdata, {"content-type": content_type, "x-upsert": "true"})
ref = supabase.storage.from_(BUCKET_NAME).list(
"",
{
"limit": 1,
"offset": 0,
"sortBy": {"column": "name", "order": "desc"},
"search": res.path,
}
)
# ref.id