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 8453a8ee0..0ac678de7 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 @@ -1,47 +1,43 @@ - + Create file Upload a file to add it to your bucket. - {#if isCloud} + {#if isCloud && showFileSizeWarning} {@const size = humanFileSize(sizeToBytes(service, 'MB', 1000))} - {@const plan = tierToPlan($organization?.billingPlan)}

- The {plan.name} plan has a maximum upload file size limit of {Math.floor( + The maximum file upload size for this bucket is {Math.floor( parseInt(size.value) - )}{size.unit}. - {#if $organization?.billingPlan === BillingPlan.STARTER} - Upgrade to allow files of a larger size. - {/if} + )}{size.unit}. Edit this number in your bucket settings.

- - {#if $organization?.billingPlan === BillingPlan.STARTER} -
- -
- {/if} -
{/if} diff --git a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte b/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte deleted file mode 100644 index 209f1ded2..000000000 --- a/src/routes/console/project-[project]/storage/bucket-[bucket]/create.svelte +++ /dev/null @@ -1,105 +0,0 @@ - - - - -
- -
- - {#if !showCustomId} -
- (showCustomId = !showCustomId)}> - -
- {:else} - - {/if} - Permissions -

- Choose who can access your buckets and files. For more information, visit our - - Permissions guide - . -

- {#if $bucket.fileSecurity} -
- - File security enabled - Users will be able to access this file if they have been granted - either File or Bucket permissions. - -
-
- -
- {:else} - - File security disabled - If you want to assign file permissions, navigate to Bucket settings and enable file security. - Otherwise, only Bucket permissions will be used. - - {/if} -
- - - - -