From 930ec8cc5b2010f48388101233078118fb3dbe17 Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Fri, 13 Dec 2024 10:22:07 +0100 Subject: [PATCH] larger JSON file size limit for scene.svx.json --- source/server/routes/scenes/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/routes/scenes/index.ts b/source/server/routes/scenes/index.ts index 4ceba94e..50af8853 100644 --- a/source/server/routes/scenes/index.ts +++ b/source/server/routes/scenes/index.ts @@ -62,7 +62,7 @@ router.propfind("/:scene/*", wrap(handlePropfind)); router.get("/:scene/:file(*.svx.json)", wrap(handleGetDocument)); router.put("/:scene/:file(*.svx.json)", canWrite, - bodyParser.json({type:["application/si-dpo-3d.document+json", "application/json"], limit: 204800}), + bodyParser.json({type:["application/si-dpo-3d.document+json", "application/json"], limit: 4e6}), wrap(handlePutDocument) );