From 41de2f6dd6d06a8390883f613b617bf3948b1336 Mon Sep 17 00:00:00 2001 From: hjhan Date: Wed, 5 Aug 2026 12:29:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=BE=E5=AE=BD=20MaxModelBindingColl?= =?UTF-8?q?ectionSize=20=E8=87=B3=201000000=20=E4=BF=AE=E5=A4=8D=E4=BA=92?= =?UTF-8?q?=E6=8D=A2=E8=A7=82=E5=AF=9F=E6=97=A5=E5=8C=BA=E9=97=B4=E8=B6=85?= =?UTF-8?q?=E9=99=90=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/YLErpWeb/Program.cs b/YLErpWeb/Program.cs index af91693c..1122b402 100644 --- a/YLErpWeb/Program.cs +++ b/YLErpWeb/Program.cs @@ -51,6 +51,7 @@ try options.ValueLengthLimit = 1024 * 1024 * 100; // 100MB max len form data options.MultipartBodyLengthLimit = int.MaxValue; //不限制文件上传大小 }); + builder.Services.AddMvcOptions(options => options.MaxModelBindingCollectionSize = 1000000); builder.Services.Configure(builder.Configuration.GetSection("KafkaConfig")); builder.Services.Configure(builder.Configuration.GetSection("ExternalCashFlow")); builder.Services.AddScoped();