The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
refactor: s/STORAGE_FILE_SIZE_LIMIT_MAX/STORAGE_FILE_SIZE_LIMIT_MAX_BYTES/
Beng Eu0b39e50668f8
diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex 9f02cc5a0f1..5eb64c9382b 100644--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -3,7 +3,7 @@ import { FC, useState } from 'react'import { AutoField } from 'uniforms-bootstrap4'import { Typography } from '@supabase/ui'-import { API_URL, STORAGE_FILE_SIZE_LIMIT_MAX } from 'lib/constants'+import { API_URL, STORAGE_FILE_SIZE_LIMIT_MAX_BYTES } from 'lib/constants'import { patch, get } from 'lib/common/fetch'import { useStore } from 'hooks'import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'@@ -61,7 +61,7 @@ const StorageConfig = ({ config, projectRef }: any) => {properties: {fileSizeLimit: {help: 'The maximum size in bytes of a file that can be uploaded.',- maximum: STORAGE_FILE_SIZE_LIMIT_MAX,+ maximum: STORAGE_FILE_SIZE_LIMIT_MAX_BYTES,minimum: 0,title: 'Upload file size limit',type: 'integer',@@ -79,7 +79,7 @@ const StorageConfig = ({ config, projectRef }: any) => {name="fileSizeLimit"showInlineErrorerrorMessage={`Must be a number up to ${new Intl.NumberFormat('en-US').format(- STORAGE_FILE_SIZE_LIMIT_MAX+ STORAGE_FILE_SIZE_LIMIT_MAX_BYTES)} bytes.`}/>{isFreeTier && (diff --git a/studio/lib/constants/infrastructure.ts b/studio/lib/constants/infrastructure.tsindex 39001df34b2..d15adeb97fe 100644--- a/studio/lib/constants/infrastructure.ts+++ b/studio/lib/constants/infrastructure.ts@@ -133,4 +133,4 @@ export const PASSWORD_STRENGTH_PERCENTAGE = {export const DEFAULT_FREE_PROJECTS_LIMIT = 2-export const STORAGE_FILE_SIZE_LIMIT_MAX = 5 * 1024 * 1024 * 1024 // 5GB+export const STORAGE_FILE_SIZE_LIMIT_MAX_BYTES = 5 * 1024 * 1024 * 1024 // 5 GB