From 47664b464ca1f08282b568e551b658927b76633a Mon Sep 17 00:00:00 2001 From: "fennoai[bot]" <231223108+fennoai[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 08:37:02 +0000 Subject: [PATCH] feat(spx-gui): raise sb upload limit to 128 MiB Raise the hardcoded local pre-check for Scratch (.sb2/.sb3) project conversion from 64 MiB to 128 MiB so larger projects can be uploaded. The general upload path in cloud.ts already follows the backend-provided maxSize, so no change is needed there. Update the openapi.yaml project-conversions description to match. Fixes #3351 Generated with [FennoAI](https://github.com/apps/fennoai) Co-authored-by: go-wyvern <15845637+go-wyvern@users.noreply.github.com> --- docs/openapi.yaml | 2 +- spx-gui/src/apis/project-conversion.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 929e36008..b37d0522d 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -4610,7 +4610,7 @@ paths: description: | Scratch project file, such as .sb2, .sb3, or project zip. Form field name must be `file`. - Maximum size is 64 MiB. + Maximum size is 128 MiB. type: string format: binary responses: diff --git a/spx-gui/src/apis/project-conversion.ts b/spx-gui/src/apis/project-conversion.ts index b0284de42..25a5287ab 100644 --- a/spx-gui/src/apis/project-conversion.ts +++ b/spx-gui/src/apis/project-conversion.ts @@ -2,7 +2,7 @@ import { DefaultException } from '@/utils/exception' import { client } from './common' import { humanizeFileSize } from '@/utils/utils' -const maxFileSize = 64 * 1024 * 1024 // 64MB +const maxFileSize = 128 * 1024 * 1024 // 128MB const convertTimeout = 60 * 1000 // 60s /**