fix: use supported upload size limit - #21
Merged
canghai118 merged 1 commit intoAug 24, 2026
Merged
Conversation
Signed-off-by: MrVortexLabs <00mrvortexlabsuzb00@gmail.com>
Contributor
|
Thanks for the fix! You're right |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Updates the image upload size limit from the unsupported
10MBliteral to the NuxtHub-supported16MBvalue, and keeps the widget client-side validation message in sync with the server limit.Why
server/api/upload.post.tsusedensure.maxSize: '10MB', but the typed NuxtHub upload validator only accepts specific binary size literals such as8MBand16MB. This caused TypeScript to report an invalid upload size literal.How to review
Start with
server/api/upload.post.ts, then checkapp/components/WidgetEmbed/WidgetEmbedChat.vueto confirm the browser-side limit matches the server-side upload limit.Checklist
git commit -s)pnpm build)pnpm generate:migration) and committedREADME.md/.env.example/docs/deploy/*updatedLocal verification:
pnpm i18n:checkpassesserver/api/upload.post.tsis goneNote: full typecheck still has unrelated existing errors outside this small diff.