The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
paragraphs
Copplec80850a2f2e8
diff --git a/apps/docs/pages/guides/storage.mdx b/apps/docs/pages/guides/storage.mdxindex 0a4d067b872..75a0ab17d6f 100644--- a/apps/docs/pages/guides/storage.mdx+++ b/apps/docs/pages/guides/storage.mdx@@ -11,25 +11,75 @@ export const meta = {Supabase Storage makes it simple to store and serve large files.-## Files+## Concepts++### FilesFiles can be any sort of media file. This includes images, GIFs, and videos. It is best practice to store files outside of your database because of their sizes. For security, HTML files are returned as plain text.-## Folders+### FoldersFolders are a way to organize your files (just like on your computer). There is no right or wrong way to organize your files. You can store them in whichever folder structure suits your project.-## Buckets+### BucketsBuckets are distinct containers for files and folders. You can think of them like "super folders". Generally you would create distinct buckets for different Security and Access Rules. For example, you might keep all video files in a "video" bucket, and profile pictures in an "avatar" bucket.-## See also+## Examples++Check out all of the AI [templates and examples](https://github.com/supabase/supabase/tree/master/examples/storage) in our GitHub repository.++<div className="grid md:grid-cols-12 gap-4 not-prose">+ {examples.map((x) => (+ <div className="col-span-12" key={x.href}>+ <Link href={x.href} passHref>+ <a>+ <GlassPanel icon={'/docs/img/icons/github-icon'} hasLightIcon={true} title={x.name}>+ {x.description}+ </GlassPanel>+ </a>+ </Link>+ </div>+ ))}+</div>++export const examples = [+ {+ name: 'Resumable Uploads with Uppy',+ description:+ 'Use Uppy to upload files to Supabase Storage using the TUS protocol (resumable uploads).',+ href: 'https://github.com/supabase/supabase/tree/master/examples/storage/resumable-upload-uppy',+ },+]++## Resources++Find the source code and documentation in the Supabase GitHub repository.++<div className="grid md:grid-cols-12 gap-4 not-prose">+ {integrations.map((x) => (+ <div className="col-span-6" key={x.href}>+ <Link href={x.href} passHref>+ <a>+ <GlassPanel title={x.name}>{x.description}</GlassPanel>+ </a>+ </Link>+ </div>+ ))}+</div>-- Read more about Supabase Storage in the [blog post](https://supabase.com/blog/supabase-storage)-- [Supabase Storage on GitHub](https://github.com/supabase/storage-api)-- [Swagger API documentation](https://supabase.github.io/storage-api)-- Official [JavaScript](/docs/reference/javascript/storage-createbucket) and [Dart](/docs/reference/dart/storage-createbucket) documentation-- [Community libraries](https://github.com/supabase-community)+export const integrations = [+ {+ name: 'Supabase Storage API',+ description: 'See the OpenAPI Spec for Supabase Storage.',+ href: 'https://github.com/supabase/storage-api',+ },+ {+ name: 'OpenAPI Spec',+ description: 'See the Swagger Documentation for Supabase Storage.',+ href: 'https://supabase.github.io/storage-api/',+ },+]export const Page = ({ children }) => <Layout meta={meta} children={children} />diff --git a/apps/docs/pages/guides/storage/cdn.mdx b/apps/docs/pages/guides/storage/cdn.mdxindex 7b8c3fe2b27..bd4527adee5 100644--- a/apps/docs/pages/guides/storage/cdn.mdx+++ b/apps/docs/pages/guides/storage/cdn.mdx@@ -56,13 +56,11 @@ Additionally, the smart CDN has a higher cache hit ratio as the origin server isWhen Smart CDN is enabled, the asset is cached on the CDN for as long as possible. You can still control how long assets are stored in the browser using the [cacheControl](/docs/reference/javascript/storage-from-upload) option when uploading a file. Smart CDN caching works with all types of storage operations including signed URLs.-When a file is updated or deleted, the CDN cache is automatically invalidated to reflect the change (including transformed images).-It can take **up to 60 seconds** for the CDN cache to be invalidated as the asset metadata has to propagate across all the data-centers around the globe.+When a file is updated or deleted, the CDN cache is automatically invalidated to reflect the change (including transformed images). It can take **up to 60 seconds** for the CDN cache to be invalidated as the asset metadata has to propagate across all the data-centers around the globe.When an asset is invalidated at the CDN level, browsers may not update its cache.-If your asset is updated frequently, we recommend that you re-upload the new asset in a different key, this way you'll always have the latest changes available without waiting the propagation delay.-If you expect your asset to be deleted, we recommend setting a low browser TTL value using the `cacheControl` option when using smart CDN caching, the default is 1 hour which generally is a good default.+If your asset is updated frequently, we recommend that you re-upload the new asset in a different key, this way you'll always have the latest changes available without waiting the propagation delay. If you expect your asset to be deleted, we recommend setting a low browser TTL value using the `cacheControl` option when using smart CDN caching, the default is 1 hour which generally is a good default.## Public vs Private Buckets