aspnet / HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FormOptions not work

Eilon opened this issue · comments

From @sy-ing on August 29, 2017 11:25

In .net core 2.0
I want to upload a file that size maybe 1G or more

I modify the FormOptions like

   services.Configure<FormOptions>(x =>
            {
                x.ValueLengthLimit = int.MaxValue;
                x.MultipartBodyLengthLimit = int.MaxValue;
                x.MultipartHeadersLengthLimit = int.MaxValue;
            });

But it is invalid

I still can't upload files over 10M in size

Copied from original issue: dotnet/core#908

From @Petermarcu on August 30, 2017 16:35

@Eilon

Moved to correct repo. BTW there's some info here on request limits: aspnet/Announcements#267

@sy-ing

Were you able to resolve your issue with the information on the announcement Eilon shared?

commented

I repair the issue by modify the cofig of the nginx and remove the tag of async