Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Docs: storage kaizen (#17400)

Coppleae6b0fe4fd85
diff --git a/spec/supabase_py_v2.yml b/spec/supabase_py_v2.yml
index 34e1e68a6fa..560d5a76b38 100644
--- a/spec/supabase_py_v2.yml
+++ b/spec/supabase_py_v2.yml
@@ -747,7 +747,7 @@ functions:
code: |
```
with open(source, 'rb+') as f:
- res = supabase.storage.from_('bucket').upload(destination, f)
+ res = supabase.storage.from_('bucket_name').upload(destination, f)
```
- id: from-move
title: 'from_.move()'
@@ -761,7 +761,7 @@ functions:
name: Move file
code: |
```
- res = supabase.storage.from_(bucket).move('public/avatar1.png', 'private/avatar2.png')
+ res = supabase.storage.from_('bucket_name').move('public/avatar1.png', 'private/avatar2.png')
```
- id: from-create-signed-url
@@ -776,7 +776,7 @@ functions:
name: Create Signed URL
code: |
```
- res = supabase.storage.from_(bucket_name).create_signed_url(filepath, expiry_duration)
+ res = supabase.storage.from_('bucket_name').create_signed_url(filepath, expiry_duration)
```
- id: from-get-public-url
@@ -792,7 +792,7 @@ functions:
name: Returns the URL for an asset in a public bucket
code: |
```
- res = supabase.storage.from_(bucket_name).get_public_url('test/avatar1.jpg')
+ res = supabase.storage.from_('bucket_name').get_public_url('test/avatar1.jpg')
```
- id: from-download
@@ -808,7 +808,7 @@ functions:
code: |
```
with open(destination, 'wb+') as f:
- res = supabase.storage.from_(bucket_name).download(source)
+ res = supabase.storage.from_('bucket_name').download(source)
f.write(res)
```
@@ -824,7 +824,7 @@ functions:
name: Delete file
code: |
```
- res = supabase.storage.from_('test').remove('test.jpg')
+ res = supabase.storage.from_('bucket_name').remove('test.jpg')
```
- id: from-list
title: 'from_.list()'
@@ -838,7 +838,7 @@ functions:
name: List files in a bucket
code: |
```
- res = supabase.storage.from_('test').list()
+ res = supabase.storage.from_('bucket_name').list()
```
- id: subscribe
title: on().subscribe()