Skip to content

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

update storage policy guide

Inian9ae770e576a8
diff --git a/apps/reference/_supabase_js/generated/storage-createbucket.mdx b/apps/reference/_supabase_js/generated/storage-createbucket.mdx
index 5c6d9a9ea83..d82af4997c6 100644
--- a/apps/reference/_supabase_js/generated/storage-createbucket.mdx
+++ b/apps/reference/_supabase_js/generated/storage-createbucket.mdx
@@ -89,9 +89,10 @@ The visibility of the bucket. Public buckets don't require an authorization toke
## Notes
-- Policy permissions required:
- - `buckets` permissions: `insert`
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: `insert`
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx b/apps/reference/_supabase_js/generated/storage-deletebucket.mdx
index 727bfe10e7a..fa15415b793 100644
--- a/apps/reference/_supabase_js/generated/storage-deletebucket.mdx
+++ b/apps/reference/_supabase_js/generated/storage-deletebucket.mdx
@@ -43,9 +43,10 @@ The unique identifier of the bucket you would like to delete.
## Notes
-- Policy permissions required:
- - `buckets` permissions: `select` and `delete`
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: `select` and `delete`
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx b/apps/reference/_supabase_js/generated/storage-emptybucket.mdx
index 38bae132b2d..568e5cea01c 100644
--- a/apps/reference/_supabase_js/generated/storage-emptybucket.mdx
+++ b/apps/reference/_supabase_js/generated/storage-emptybucket.mdx
@@ -42,9 +42,10 @@ The unique identifier of the bucket you would like to empty.
## Notes
-- Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: `select` and `delete`
+- RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: `select` and `delete`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-copy.mdx b/apps/reference/_supabase_js/generated/storage-from-copy.mdx
index 5ceec355732..14ba7920ae6 100644
--- a/apps/reference/_supabase_js/generated/storage-from-copy.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-copy.mdx
@@ -64,9 +64,10 @@ The new file path, including the new file name. For example `folder/image-copy.p
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `insert` and `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `insert` and `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx
index 0d329cb61dd..8b9603b008a 100644
--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurl.mdx
@@ -64,9 +64,10 @@ The number of seconds until the signed URL expires. For example, `60` for a URL
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx
index 095894be00b..7a2ebb9a98b 100644
--- a/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-createsignedurls.mdx
@@ -64,9 +64,10 @@ The number of seconds until the signed URLs expire. For example, `60` for URLs w
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-download.mdx b/apps/reference/_supabase_js/generated/storage-from-download.mdx
index 3944d88489f..e30cb64ae5c 100644
--- a/apps/reference/_supabase_js/generated/storage-from-download.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-download.mdx
@@ -44,9 +44,10 @@ The full path and file name of the file to be downloaded. For example `folder/im
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx
index 96b7636ab6e..0956a453ff4 100644
--- a/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-getpublicurl.mdx
@@ -46,9 +46,10 @@ The path and name of the file to generate the public URL for. For example `folde
## Notes
- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public"
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-list.mdx b/apps/reference/_supabase_js/generated/storage-from-list.mdx
index f76f98a331b..332933a8b66 100644
--- a/apps/reference/_supabase_js/generated/storage-from-list.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-list.mdx
@@ -196,9 +196,10 @@ Pass in an AbortController's signal to cancel the request.
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-move.mdx b/apps/reference/_supabase_js/generated/storage-from-move.mdx
index 12710d3e777..0aca1f66819 100644
--- a/apps/reference/_supabase_js/generated/storage-from-move.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-move.mdx
@@ -64,9 +64,10 @@ The new file path, including the new file name. For example `folder/image-new.pn
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `update` and `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `update` and `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-remove.mdx b/apps/reference/_supabase_js/generated/storage-from-remove.mdx
index 3ebc245f822..7d1de597ba1 100644
--- a/apps/reference/_supabase_js/generated/storage-from-remove.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-remove.mdx
@@ -44,9 +44,10 @@ An array of files to be delete, including the path and file name. For example [`
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `delete` and `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `delete` and `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-update.mdx b/apps/reference/_supabase_js/generated/storage-from-update.mdx
index d306a4f0b1f..0f88af17c72 100644
--- a/apps/reference/_supabase_js/generated/storage-from-update.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-update.mdx
@@ -358,9 +358,10 @@ When upsert is set to true, the file is overwritten if it exists. When set to fa
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `update` and `select`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `update` and `select`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below.
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-from-upload.mdx b/apps/reference/_supabase_js/generated/storage-from-upload.mdx
index c853f4dfe05..1723775455a 100644
--- a/apps/reference/_supabase_js/generated/storage-from-upload.mdx
+++ b/apps/reference/_supabase_js/generated/storage-from-upload.mdx
@@ -358,9 +358,10 @@ When upsert is set to true, the file is overwritten if it exists. When set to fa
## Notes
-- Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `insert`
+- RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `insert`
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below.
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-getbucket.mdx b/apps/reference/_supabase_js/generated/storage-getbucket.mdx
index ebe75a13646..13636f5758f 100644
--- a/apps/reference/_supabase_js/generated/storage-getbucket.mdx
+++ b/apps/reference/_supabase_js/generated/storage-getbucket.mdx
@@ -42,9 +42,10 @@ The unique identifier of the bucket you would like to retrieve.
## Notes
-- Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx b/apps/reference/_supabase_js/generated/storage-listbuckets.mdx
index 14a13330e99..a6597d1ec15 100644
--- a/apps/reference/_supabase_js/generated/storage-listbuckets.mdx
+++ b/apps/reference/_supabase_js/generated/storage-listbuckets.mdx
@@ -16,9 +16,10 @@ const { data, error } = await supabase.storage.listBuckets()
## Notes
-- Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx b/apps/reference/_supabase_js/generated/storage-updatebucket.mdx
index 4770b4c2d21..5a7eddc95f0 100644
--- a/apps/reference/_supabase_js/generated/storage-updatebucket.mdx
+++ b/apps/reference/_supabase_js/generated/storage-updatebucket.mdx
@@ -89,9 +89,10 @@ The visibility of the bucket. Public buckets don't require an authorization toke
## Notes
-- Policy permissions required:
- - `buckets` permissions: `update`
- - `objects` permissions: none
+- RLS policy permissions required:
+ - `buckets` table permissions: `update`
+ - `objects` table permissions: none
+- Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
## Examples
diff --git a/apps/reference/docs/guides/storage.mdx b/apps/reference/docs/guides/storage.mdx
index 92b4904a9d0..6da43b2778e 100644
--- a/apps/reference/docs/guides/storage.mdx
+++ b/apps/reference/docs/guides/storage.mdx
@@ -268,9 +268,44 @@ create policy "Public Access"
</TabItem>
</Tabs>
+## Accessing objects
+
+For private buckets, you can access objects via the [download](/docs/reference/javascript/storage-from-download) method. This corresponds to `/object/auth/` API endpoint.
+Alternatively, you can create a publicly shareable URL with an expiry date using the [createSignedUrl](/docs/reference/javascript/storage-from-createsignedurl) method
+which calls the `/object/sign/` API.
+
+For public buckets, you can access the assets directly without a token or an Authorisation header. The [getPublicUrl](/docs/reference/javascript/storage-from-getpublicurl)
+helper method returns the full public URL for an asset. This calls the `/object/public/` API endpoint internally.
+
+<details>
+<summary>Advanced: reverse proxy</summary>
+The URLs returned are proxied through the API Proxy. They are prefixed by <code>/storage/v1</code>.
+
+For example, on the hosted Platform they will be
+
+<code>https://[project_ref].supabase.co/storage/v1/object/public/[id]</code>
+
+You can access the storage API directly with the same endpoint. See the <a href="https://supabase.github.io/storage-api">API docs</a> for a full list of operations available.
+
+</details>
+
+---
+
+## Access Control
+
+Supabase Storage is integrated with your [Postgres Database](/docs/guides/database).
+This means that you can use the same [Row Level Security Policies](/docs/guides/auth#policies)
+for managing access to your files. Supabase Storage stores metadata in the `objects` and `buckets` table in the storage schema. To allow read access to files, the RLS policy must allow users to `SELECT` the `objects` table and for uploading a new object, the RLS policy must grant users access to `INSERT` into the `objects` table and so on. The mapping between the different API calls and the database permissions required is documented in the [Reference docs](/docs/reference/javascript/next/storage-createbucket).
+
+:::note
+
+Access control for Storage is mapped to CRUD operations on the `buckets` and `objects` table via RLS policies.
+
+:::
+
## Helpers
-Supabase Storage is configured with database SQL helper functions which you can use in your database queries and
+Supabase Storage provides SQL helper functions which you can use in your database queries and
policies.
---
@@ -320,39 +355,9 @@ For example, if your file is stored in `public/subfolder/avatar.png` it would re
---
-## Accessing objects
-
-For private buckets, you can access objects via the [download](/docs/reference/javascript/storage-from-download) method. This corresponds to `/object/auth/` API endpoint.
-Alternatively, you can create a publicly shareable URL with an expiry date using the [createSignedUrl](/docs/reference/javascript/storage-from-createsignedurl) method
-which calls the `/object/sign/` API.
-
-For public buckets, you can access the assets directly without a token or an Authorisation header. The [getPublicUrl](/docs/reference/javascript/storage-from-getpublicurl)
-helper method returns the full public URL for an asset. This calls the `/object/public/` API endpoint internally.
-
-<details>
-<summary>Advanced: reverse proxy</summary>
-The URLs returned are proxied through the API Proxy. They are prefixed by <code>/storage/v1</code>.
-
-For example, on the hosted Platform they will be
-
-<code>https://[project_ref].supabase.co/storage/v1/object/public/[id]</code>
-
-You can access the storage API directly with the same endpoint. See the <a href="https://supabase.github.io/storage-api">API docs</a> for a full list of operations available.
-
-</details>
-
----
-
-## Security
-
-Supabase Storage is integrated with your [Postgres Database](/docs/guides/database).
-This means that you can use the same [Policy](/docs/guides/auth#policies) engine
-for managing access to your files.
-
## Policy Examples
-Here are some examples to show you the power of PostgreSQL's Row Level Security. Each policy is attached to a table, and the policy is executed
-every time a table is accessed.
+Here are some examples of storage policies.
### Allow public access to a bucket
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.yml
index ef2a5f7f43d..27afe50bd59 100644
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@ -1123,9 +1123,10 @@ pages:
title: 'listBuckets()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.listBuckets'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: List buckets
isSpotlight: true
@@ -1140,9 +1141,10 @@ pages:
title: 'getBucket()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.getBucket'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Get bucket
isSpotlight: true
@@ -1157,9 +1159,10 @@ pages:
title: 'createBucket()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.createBucket'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `insert`
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: `insert`
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Create bucket
isSpotlight: true
@@ -1174,9 +1177,10 @@ pages:
title: 'emptyBucket()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.emptyBucket'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `select`
- - `objects` permissions: `select` and `delete`
+ - RLS policy permissions required:
+ - `buckets` table permissions: `select`
+ - `objects` table permissions: `select` and `delete`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Empty bucket
isSpotlight: true
@@ -1190,9 +1194,10 @@ pages:
title: 'updateBucket()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.updateBucket'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `update`
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: `update`
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Update bucket
isSpotlight: true
@@ -1207,9 +1212,10 @@ pages:
title: 'deleteBucket()'
$ref: '@supabase/storage-js.packages/StorageBucketApi.default.deleteBucket'
notes: |
- - Policy permissions required:
- - `buckets` permissions: `select` and `delete`
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: `select` and `delete`
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Delete bucket
isSpotlight: true
@@ -1224,9 +1230,10 @@ pages:
title: 'from.upload()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.upload'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `insert`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `insert`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Upload file using `ArrayBuffer` from base64 file data instead, see example below.
examples:
- name: Upload file
@@ -1259,9 +1266,10 @@ pages:
title: 'from.update()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.update'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `update` and `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `update` and `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
- For React Native, using either `Blob`, `File` or `FormData` does not work as intended. Update file using `ArrayBuffer` from base64 file data instead, see example below.
examples:
- name: Update file
@@ -1294,9 +1302,10 @@ pages:
title: 'from.move()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.move'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `update` and `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `update` and `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Move file
isSpotlight: true
@@ -1312,9 +1321,10 @@ pages:
title: 'from.copy()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.copy'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `insert` and `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `insert` and `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Copy file
isSpotlight: true
@@ -1330,9 +1340,10 @@ pages:
title: 'from.createSignedUrl()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.createSignedUrl'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Create Signed URL
isSpotlight: true
@@ -1348,9 +1359,10 @@ pages:
title: 'from.createSignedUrls()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.createSignedUrls'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Create Signed URLs
isSpotlight: true
@@ -1367,9 +1379,10 @@ pages:
$ref: '@supabase/storage-js.packages/StorageFileApi.default.getPublicUrl'
notes: |
- The bucket needs to be set to public, either via [updateBucket()](/docs/reference/javascript/storage-updatebucket) or by going to Storage on [app.supabase.com](https://app.supabase.com), clicking the overflow menu on a bucket and choosing "Make public"
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: none
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: none
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Returns the URL for an asset in a public bucket
isSpotlight: true
@@ -1385,9 +1398,10 @@ pages:
title: 'from.download()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.download'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Download file
isSpotlight: true
@@ -1403,9 +1417,10 @@ pages:
title: 'from.remove()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.remove'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `delete` and `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `delete` and `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: Delete file
isSpotlight: true
@@ -1421,9 +1436,10 @@ pages:
title: 'from.list()'
$ref: '@supabase/storage-js.packages/StorageFileApi.default.list'
notes: |
- - Policy permissions required:
- - `buckets` permissions: none
- - `objects` permissions: `select`
+ - RLS policy permissions required:
+ - `buckets` table permissions: none
+ - `objects` table permissions: `select`
+ - Refer to the [Storage guide](/docs/guides/storage#access-control) on how access control works
examples:
- name: List files in a bucket
isSpotlight: true