The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs: storage limits (#38392)
Danny White7e44382aec5f
diff --git a/apps/docs/content/guides/storage/buckets/creating-buckets.mdx b/apps/docs/content/guides/storage/buckets/creating-buckets.mdxindex 2dff4d0d540..b466ec48cbf 100644--- a/apps/docs/content/guides/storage/buckets/creating-buckets.mdx+++ b/apps/docs/content/guides/storage/buckets/creating-buckets.mdx@@ -96,9 +96,8 @@ supabase.storage.create_bucket(## Restricting uploadsWhen creating a bucket you can add additional configurations to restrict the type or size of files you want this bucket to contain.-For example, imagine you want to allow your users to upload only images to the `avatars` bucket and the size must not be greater than 1MB.-You can achieve the following by providing: `allowedMimeTypes` and `maxFileSize`+For example, imagine you want to allow your users to upload only images to the `avatars` bucket and the size must not be greater than 1MB. You can achieve the following by providing `allowedMimeTypes` and `maxFileSize`:```jsimport { createClient } from '@supabase/supabase-js'@@ -114,6 +113,4 @@ const { data, error } = await supabase.storage.createBucket('avatars', {})```-If an upload request doesn't meet the above restrictions it will be rejected.--For more information check [File Limits](/docs/guides/storage/uploads/file-limits) Section.+If an upload request doesn't meet the above restrictions it will be rejected. See [File Limits](/docs/guides/storage/uploads/file-limits) for more information.diff --git a/apps/docs/content/guides/storage/uploads/file-limits.mdx b/apps/docs/content/guides/storage/uploads/file-limits.mdxindex 870b580121f..d4e2abb8ff6 100644--- a/apps/docs/content/guides/storage/uploads/file-limits.mdx+++ b/apps/docs/content/guides/storage/uploads/file-limits.mdx@@ -8,7 +8,7 @@ sidebar_label: 'Limits'## Global file size-You can set the max file size across all your buckets by setting this global value in the dashboard [here](https://supabase.com/dashboard/project/_/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](https://supabase.com/dashboard/support/new).+You can set the maximum file size across all your buckets by setting the _Global file size limit_ value in your [Storage Settings](https://supabase.com/dashboard/project/_/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](https://supabase.com/dashboard/support/new).| Plan | Max File Size Limit || ---------- | ------------------- |@@ -23,8 +23,8 @@ This option is a global limit, which applies to all your buckets.</Admonition>-Additionally, you can specify the max file size on a per [bucket level](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) 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, and apply per bucket limits.+Additionally, you can specify the maximum file size on a per [bucket level](/docs/guides/storage/buckets/creating-buckets#restricting-uploads) 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-You can have different restrictions on a per bucket level such as restricting the file types (e.g. `pdf`, `images`, `videos`) or the max file size, which should be lower than the global limit. To apply these limit on a bucket level see [Creating Buckets](/docs/guides/storage/buckets/creating-buckets#restricting-uploads).+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 limit on a bucket level see [Creating Buckets](/docs/guides/storage/buckets/creating-buckets#restricting-uploads).diff --git a/apps/docs/content/troubleshooting/upload-file-size-restrictions-Y4wQLT.mdx b/apps/docs/content/troubleshooting/upload-file-size-restrictions-Y4wQLT.mdxindex a490cbac3d5..b783591c0b3 100644--- a/apps/docs/content/troubleshooting/upload-file-size-restrictions-Y4wQLT.mdx+++ b/apps/docs/content/troubleshooting/upload-file-size-restrictions-Y4wQLT.mdx@@ -1,42 +1,40 @@---title = "Upload file size restrictions"github_url = "https://github.com/orgs/supabase/discussions/27431"-date_created = "2024-06-20T23:15:48+00:00"+date_created = "2025-09-03T23:15:48+00:00"topics = [ "storage" ]keywords = [ "upload", "file", "size", "restriction" ]database_id = "3b0aa0f2-9608-4691-94d6-4fca8a32130e"----You can view the max permissible upload size for your plan in the [docs](https://supabase.com/docs/guides/storage/uploads/file-limits).+You can view the maximum file upload size from the [docs](https://supabase.com/docs/guides/storage/uploads/file-limits). It differs based on your plan and on any bucket or global limits you might have already set.-## There are two ways to control the max upload sizes:+## Edit the maximum file upload size-The first way is through the [global storage settings](https://supabase.com/dashboard/project/_/storage/settings):+There are two ways to edit the maximum file upload size:-<img- width="920"- alt="Screenshot 2024-06-20 at 7 06 57 PM"- src="https://github.com/supabase/supabase/assets/91111415/c33acc4a-efd8-4746-ac98-ddc71e17f8f1"-/>+- Global file upload size limit+- Bucket-level file upload size limit-The second way is at the [bucket level](https://supabase.com/dashboard/project/_/storage/buckets/)+### Global file upload size limit-1. Edit a bucket's configurations:+To edit the global file upload size limit, change the value of _Global file size limit_ in the top section of [Storage Settings](https://supabase.com/dashboard/project/_/storage/settings).- <img- width="355"- alt="Screenshot 2024-06-20 at 7 07 48 PM"- src="https://github.com/supabase/supabase/assets/91111415/51719d9f-3644-40ed-9aaa-8b21fff41634"- />+If they are set higher than your new global limit, you’ll be asked to edit or remove any existing bucket-level limits first. The global limit takes precedence.-2. Change the file upload restriction if set:- <img- width="340"- alt="Screenshot 2024-06-20 at 7 07 56 PM"- src="https://github.com/supabase/supabase/assets/91111415/917f3cf6-81c4-444f-9ac1-f26eec5eac0c"- />+### Bucket-level file upload size limit-## Different upload methods impose file size restrictions:+Follow these steps to edit the maximum file upload size at the bucket level:-- [Standard uploads can only transfer up to 5GBs](https://supabase.com/docs/guides/storage/uploads/standard-uploads?queryGroups=language&language=js). However, for files above 6MB, the below methods are more performant and reliable+1. Open a bucket in the [Storage Buckets](https://supabase.com/dashboard/project/_/storage/buckets/) page.+2. Select the overflow menu (three vertical dots icon), and then select _Edit bucket_.+3. Enable _Restrict file size_ and then set the file size limit for that bucket.++You won’t be able to set a limit that is greater than the global file upload size limit, as that takes precedence.++## File size restrictions++Upload methods impose differing file size restrictions:++- [Standard uploads can only transfer up to 5 GBs](https://supabase.com/docs/guides/storage/uploads/standard-uploads?queryGroups=language&language=js). However, for files above 6MB, the below methods are more performant and reliable.- [Resumable](https://supabase.com/docs/guides/storage/uploads/resumable-uploads) and [S3](https://supabase.com/docs/guides/storage/uploads/resumable-uploads) uploads can support transfers up to 50GB in size.diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsxindex 70ad6420716..ece6faa3fb4 100644--- a/apps/studio/state/storage-explorer.tsx+++ b/apps/studio/state/storage-explorer.tsx@@ -1009,13 +1009,12 @@ function createStorageExplorerState({Failed to upload {numberOfFilesRejected} file{numberOfFilesRejected > 1 ? 's' : ''} as{' '}{numberOfFilesRejected > 1 ? 'their' : 'its'} size{numberOfFilesRejected > 1 ? 's are' : ' is'} beyond the global upload limit of{' '}- {value}- {unit}.+ {value} {unit}.</p><p className="text-foreground-light">You can change the global file size upload limit in{' '}<InlineLink href={`/project/${state.projectRef}/storage/settings`}>- Storage settings+ Storage Settings</InlineLink>.</p>@@ -1216,7 +1215,7 @@ function createStorageExplorerState({case 413:// Payload too largetoast.error(- `Failed to upload ${file.name}: File size exceeds the bucket upload limit.`+ `Failed to upload ${file.name}: File size exceeds the bucket file size limit.`)breakcase 409: