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) => {