python supabase update existing file not working

Hi guys, I need help, I want to update an existing image inside a bucket of the path {user_id}/{user_id}.png

attached is my Python code please check the upload_image_to_storage function when uploading an image if it exists I should be able to update that image

but I keep getting this error "Failed to update image. 'SyncBucketProxy' object has no attribute 'update'", the API documentation clearly shows there is an update example https://supabase.com/docs/reference/python/storage-from-move?example=update-file

Your help will be highly appreciated

I am using FastAPI version 0.104.1 and supabase version 2.2.1
supadb.py2.38KB
Was this page helpful?