From ff66e918cfdf341bb736c4ea60e4978b918deffb Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Wed, 19 Oct 2022 17:08:07 +0200 Subject: [PATCH] server: increase max payload size to 16MB Fixes #337 --- server/src/infra/graphql/api.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/infra/graphql/api.rs b/server/src/infra/graphql/api.rs index 2607941..629153b 100644 --- a/server/src/infra/graphql/api.rs +++ b/server/src/infra/graphql/api.rs @@ -90,6 +90,7 @@ where .into() }); cfg.app_data(json_config); + cfg.app_data(web::PayloadConfig::new(1 << 24)); // Max payload size: 16MB, allows for a 12MB image. cfg.service( web::resource("/graphql") .route(web::post().to(graphql_route::))