表单超过限制解决办法
builder.Services.Configure<FormOptions>(options =>
{
options.ValueLengthLimit = 100 * 1024 * 1024; // 100 MB
options.KeyLengthLimit = 100 * 1024 * 1024; // 100 MB
options.MultipartHeadersCountLimit = 100*1024*1024; // 100 MB
options.MultipartBodyLengthLimit = 100 * 1024 * 1024; // 100 MB
});
网友评论