submit large form data with post action return 400 error in .NET 6

I'm using .NET 6 to post a form with large form data (about 200Mb), and there is no any file.

this's kind of my form in front-end:

@using (Html.BeginForm(FormMethod.Post, new { id = "frm", @autocomplete = "off", @enctype="multipart/form-data" }))

and back-end:

public async Task<IActionResult> SearchList(VM_SearchList data)

quoto from Skrface I have submited with an VerificationToken field in front-end, and decorated with a ValidateAntiForgeryToken filter in back-end, so it doesn't seems like a validation issus.

and from Matthew Steven Monkan and this answer, I have tried all the setting there, like DisableRequestSizeLimit filter above, and also tried to decorate with RequestFormLimits and RequestSizeLimit filters which set to 500Mb.

[RequestFormLimits(MultipartBodyLengthLimit = 524288000)]
public async Task<IActionResult> SearchList(VM_SearchList data)

And also tried to set in Program.cs:

builder.Services.Configure<HttpSysOptions>(options =>
    options.MaxRequestBodySize = int.MaxValue;


builder.Services.Configure<FormOptions>(x =>
    x.ValueLengthLimit = int.MaxValue;
    x.MultipartBodyLengthLimit = int.MaxValue;
    x.MemoryBufferThreshold = int.MaxValue;

or in KestrelServer:

builder.Services.Configure<KestrelServerOptions>(options =>
    options.Limits.MaxRequestBodySize = int.MaxValue;

but it still can't work...

here is my request body information and error:

enter image description here error_picture

I can post the form successfully with the form data that request content length is about 80Mb, but size like above (143,118) can't work, do I miss something else?

can anyone help? thanks a lot!

I've tried, the maximum form data size that I can post is about 130Mb (content-length: 133120)

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum