存储
Use Supabase to store and serve files.
Supabase Storage 是一个强大且可扩展的解决方案,可以管理任何大小的文件,并提供精细的访问控制和优化的传输。无论你是在存储用户生成的内容、分析数据,还是向量嵌入,Supabase Storage 都提供了专门的存储桶类型来满足你的具体需求。
🌐 Supabase Storage is a robust, scalable solution for managing files of any size with fine-grained access controls and optimized delivery. Whether you're storing user-generated content, analytics data, or vector embeddings, Supabase Storage provides specialized bucket types to meet your specific needs.
主要特点 #
🌐 Key features
- 多协议 - 兼容S3的存储,RESTful API,TUS 可断点续传上传
- 全球 CDN - 从全球 285 多个城市以闪电般的速度提供你的资源
- 图片优化 - 使用内置图片处理功能即时调整大小、压缩和转换媒体文件
- 细粒度访问控制 - 通过行级安全和自定义策略管理文件权限
- 多种存储桶类型 - 针对不同使用场景的专业存储解决方案
Get started#
Choose the bucket type that fits your use case:
- Store and serve images, videos, documents, and general-purpose files with direct URL access and row-level security.
Files buckets
- Store data in Apache Iceberg tables for data lakes, logs, and Supabase Pipelines. Query from Postgres via foreign tables with partitioning.
Analytics buckets
- Store embeddings and run similarity search for semantic matching, AI, and RAG. Use HNSW indexing, distance metrics, and metadata filtering.
Vector buckets
Examples#
Working sample projects for common Storage integration patterns:
Resources#
Source code and REST API reference for the Storage service: