From af33f64188269783ef1dd3aa31a083254c52e670 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 1 Jan 2024 19:56:44 -0700 Subject: [PATCH] Update Server.java --- .../src/main/java/org/photonvision/server/Server.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/photon-server/src/main/java/org/photonvision/server/Server.java b/photon-server/src/main/java/org/photonvision/server/Server.java index ab649a6c8d..a393c880e9 100644 --- a/photon-server/src/main/java/org/photonvision/server/Server.java +++ b/photon-server/src/main/java/org/photonvision/server/Server.java @@ -38,6 +38,10 @@ public static void start(int port) { corsContainer.add(CorsPluginConfig::anyHost); }); + // Increase the upload size limit (arbitrary, but need to be able to deal with large + // calibration JSONs) + javalinConfig.http.maxRequestSize = (long) (50 * 1e6); + javalinConfig.requestLogger.http( (ctx, ms) -> { StringJoiner joiner =