From 49398b24f8c4fce64b64fea94e882df7a09f09df Mon Sep 17 00:00:00 2001 From: TianYun Date: Mon, 1 Jun 2026 16:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=99=A4=E5=9B=BE=E7=89=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E9=99=90=E5=88=B6=20=E6=9C=80=E5=A4=A7=E4=B8=8A?= =?UTF-8?q?=E4=BC=A022m=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.ts | 1 + src/components/nodes/AnnotationNode.tsx | 8 ++++---- src/components/nodes/ImageInputNode.tsx | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/next.config.ts b/next.config.ts index 969b7994..2160d996 100644 --- a/next.config.ts +++ b/next.config.ts @@ -4,6 +4,7 @@ const nextConfig: NextConfig = { reactStrictMode: true, output: "standalone", experimental: { + proxyClientMaxBodySize: "32mb", serverActions: { bodySizeLimit: "100mb", // Increased for large media files }, diff --git a/src/components/nodes/AnnotationNode.tsx b/src/components/nodes/AnnotationNode.tsx index ecd25c98..ad8b9efa 100644 --- a/src/components/nodes/AnnotationNode.tsx +++ b/src/components/nodes/AnnotationNode.tsx @@ -32,10 +32,10 @@ export function AnnotationNode({ id, data, selected }: NodeProps 10 * 1024 * 1024) { - alert(t("upload.imageTooLarge")); - return; - } + // if (file.size > 10 * 1024 * 1024) { + // alert(t("upload.imageTooLarge")); + // return; + // } const reader = new FileReader(); reader.onload = (event) => { diff --git a/src/components/nodes/ImageInputNode.tsx b/src/components/nodes/ImageInputNode.tsx index d57a2a59..7e489f8b 100644 --- a/src/components/nodes/ImageInputNode.tsx +++ b/src/components/nodes/ImageInputNode.tsx @@ -135,10 +135,10 @@ export function ImageInputNode({ id, data, selected }: NodeProps 10 * 1024 * 1024) { - alert(t("upload.imageTooLarge")); - return; - } + // if (file.size > 10 * 1024 * 1024) { + // alert(t("upload.imageTooLarge")); + // return; + // } const reader = new FileReader(); reader.onload = (event) => {