Skip to content

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

storage copy updates

Inian Parameshwarane27799142585
diff --git a/www/data/products/storage/dashboard-carousel.json b/www/data/products/storage/dashboard-carousel.json
index d5969539380..88bf17f0f8b 100644
--- a/www/data/products/storage/dashboard-carousel.json
+++ b/www/data/products/storage/dashboard-carousel.json
@@ -3,7 +3,7 @@
"title": "File previews",
"label": "File previews",
"img_url": "/images/product/storage/dashboard-view/file-previews.jpg",
- "text": "Preview any media type, including video and audio. "
+ "text": "Preview any media type, including video and audio."
},
{
"title": "Column view",
@@ -15,7 +15,7 @@
"title": "List view",
"label": "List view",
"img_url": "/images/product/storage/dashboard-view/list-view.jpg",
- "text": "List View to find detailed File meta data at a glance."
+ "text": "List View to find detailed File metadata at a glance."
},
{
"title": "Multi select actions",
diff --git a/www/data/products/storage/permissions-examples.js b/www/data/products/storage/permissions-examples.js
index 2aaa2f401d8..d641562c138 100644
--- a/www/data/products/storage/permissions-examples.js
+++ b/www/data/products/storage/permissions-examples.js
@@ -7,7 +7,7 @@ on storage.objects for all
with check ( bucket_id = 'avatars' );
`,
detail_title: 'Allow public CRUD access to a bucket',
- detail_text: "This will allow any user access to the bucket named 'bucket1'",
+ detail_text: "This will allow any user access to the bucket named 'avatars'",
badges_label: '',
badges: [],
url: '',
@@ -18,13 +18,13 @@ with check ( bucket_id = 'avatars' );
code: `create policy "Public access to a folder"
on storage.objects for all
using (
- bucket_id = 'bucket1'
+ bucket_id = 'avatars'
and (storage.foldername(name))[1] = 'public'
);
`,
detail_title: 'Allow public CRUD access to a folder in a bucket',
detail_text:
- "This will allow any user access to the folder named 'public' in the bucket 'bucket1'",
+ "This will allow any user access to the folder named 'public' in the bucket 'avatars'",
badges_label: '',
badges: [],
url: '',
@@ -35,12 +35,12 @@ using (
code: `create policy "Logged in access"
on storage.objects
for all using (
- bucket_id = 'bucket1'
+ bucket_id = 'avatars'
and auth.role() = 'authenticated'
);`,
detail_title: 'Allow any authenticated user access to a folder',
detail_text:
- "This will allow any authenticated user access to the folder named 'authenticated' in the bucket 'bucket1'",
+ "This will allow any authenticated user access to the folder named 'authenticated' in the bucket 'avatars'",
badges_label: '',
badges: [],
url: '',
@@ -51,7 +51,7 @@ for all using (
code: `create policy "Individual access"
on storage.objects for all
using (
- bucket_id = 'bucket1'
+ bucket_id = 'avatars'
and name = 'folder/only_uid.jpg'
and auth.uid() = 'd8c7bce9-cfeb-497b-bd61-e66ce2cbdaa2'
);`,
diff --git a/www/pages/storage/Storage.tsx b/www/pages/storage/Storage.tsx
index 60bffafca9e..f40b27eea05 100644
--- a/www/pages/storage/Storage.tsx
+++ b/www/pages/storage/Storage.tsx
@@ -189,7 +189,7 @@ function AuthPage() {
<FeatureColumn
icon={<IconWifi />}
title="CDN integration"
- text="Served from the edge to reduce latency."
+ text="Serve from the edge to reduce latency."
/>
<Badge color="blue">Coming soon</Badge>
</div>
@@ -226,10 +226,10 @@ function AuthPage() {
with Supabase Auth
</Typography.Title>
<p className="text-lg">
- Using Postgres Row Level Security to create File access rules.
+ Using Postgres Row Level Security to create Object access rules.
</p>
<p>
- Supabase Storage is built around Postgres so that you can use any
+ Storage Authorization is built around Postgres so that you can use any
combination of SQL, Postgres functions, and even your own metadata to write
policies.
</p>