IISServerOptions.MaxRequestBodySize 속성

정의

요청 본문의 최대 허용 크기를 바이트 단위로 가져오거나 설정합니다. null로 설정하면 최대 요청 길이가 ASP.NET Core 제한되지 않습니다. 그러나 IIS maxAllowedContentLength는 여전히 콘텐츠 길이 요청(기본적으로 30,000,000)을 제한합니다. 이 제한은 항상 무제한인 업그레이드된 연결에는 영향을 주지 않습니다. 를 통해 IHttpMaxRequestBodySizeFeature요청별로 재정의할 수 있습니다.

public:
 property Nullable<long> MaxRequestBodySize { Nullable<long> get(); void set(Nullable<long> value); };
public long? MaxRequestBodySize { get; set; }
member this.MaxRequestBodySize : Nullable<int64> with get, set
Public Property MaxRequestBodySize As Nullable(Of Long)

속성 값

설명

기본값은 30,000,000바이트(~28.6MB)입니다.

적용 대상