Skip to content
Storage

限制

Learn how to increase Supabase file limits.

全局文件大小 #

🌐 Global file size

你可以通过在你的存储设置中设置“全局文件大小限制”来设定所有存储桶的最大文件大小。对于免费项目,限制不能超过 50 MB。在专业版及以上计划中,你可以将此值设置为最多 500 GB。如果你需要超过 500 GB,联系我们 。

🌐 You can set the maximum file size across all your buckets by setting the Global file size limit value in your Storage Settings. For Free projects, the limit can't exceed 50 MB. On the Pro Plan and up, you can set this value to up to 500 GB. If you need more than 500 GB, contact us.

计划最大文件大小限制
免费50 MB
专业500 GB
团队500 GB
企业自定义

此外,你可以在每个存储桶级别指定最大文件大小,但它不能高于这个全局限制。作为一个好习惯,全局限制应该设置为你的应用可以接受的最大文件大小,而按需设置较小的每个存储桶限制。

🌐 Additionally, you can specify the maximum file size on a per bucket level but it can't be higher than this global limit. As a good practice, the global limit should be set to the highest possible file size that your application accepts, with smaller per-bucket limits set as needed.

每桶限制 #

🌐 Per bucket restrictions

你可以在每个存储桶级别设置不同的限制,比如限制文件类型(例如 pdf、images、videos)或最大文件大小,这个大小应该低于全局限制。要在存储桶级别应用这些限制,请查看 创建存储桶。

🌐 You can have different restrictions on a per bucket level such as restricting the file types (e.g. pdf, images, videos) or the maximum file size, which should be lower than the global limit. To apply these limits on a bucket level see Creating Buckets.

文件名限制 #

🌐 File name restrictions

文件名只能包含以下字符:

🌐 File names can only include the following characters:

  • 字母数字:A-Z,a-z,0-9
  • 标点符号:_(下划线)、-(连字符)、.(点)、'(撇号)、,(逗号)
  • 特殊字符:!、*、&、$、@、=、;、:、+、?、(、)
  • 空白