From 4b23e82615c5c41df37fd31d18fe39f24ecea736 Mon Sep 17 00:00:00 2001 From: ernstmul Date: Mon, 6 Jan 2025 10:32:14 +0100 Subject: [PATCH] Show correct upload file size --- .../storage/bucket-[bucket]/create-file/step1.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/(console)/project-[project]/storage/bucket-[bucket]/create-file/step1.svelte b/src/routes/(console)/project-[project]/storage/bucket-[bucket]/create-file/step1.svelte index 8c848afd7..bdce4159b 100644 --- a/src/routes/(console)/project-[project]/storage/bucket-[bucket]/create-file/step1.svelte +++ b/src/routes/(console)/project-[project]/storage/bucket-[bucket]/create-file/step1.svelte @@ -5,14 +5,14 @@ import { Button, FormList, InputFile } from '$lib/elements/forms'; import { humanFileSize, sizeToBytes } from '$lib/helpers/sizeConvertion'; import WizardStep from '$lib/layout/wizardStep.svelte'; - import { getServiceLimit, tierToPlan, upgradeURL } from '$lib/stores/billing'; - import { organization } from '$lib/stores/organization'; + import { tierToPlan, upgradeURL } from '$lib/stores/billing'; + import { organization, currentPlan } from '$lib/stores/organization'; import { isCloud } from '$lib/system'; import { bucket } from '../store'; import { createFile } from './store'; let showCustomId = false; - const service = getServiceLimit('fileSize'); + const service = $currentPlan['fileSize'];