C # 업로드 파일 크기 제한

1.WebConfig :

<system.web>
    <인증 모드 = "없음"/>
    <컴파일 디버그 = "true"로 targetFramework = "4.5.2"/>
    <httpRuntime을 targetFramework = "4.5.2"appRequestQueueLimit = "100"executionTimeout 설정 = "80"maxRequestLength의 = "1048576000"useFullyQualifiedRedirectUrl = "FALSE"/>
    <HttpModules는>
      <NAME = "ApplicationInsightsWebTracking"유형을 추가 = "Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
    </ HttpModules는>
  </system.web>
  <의 system.webServer>

<의 system.webServer> 첨가 :

<보안>
      <requestFiltering>
        <requestLimits Length 요청 헤더 = "1048576000"/>
      </ requestFiltering>
    </ 보안>

 

2. 응용 프로그램 풀 :
적용을 클릭 한 다음 최대 요청 엔터티 본문 제한을 변경, 속성 제한을 열고 ASP 웹 사이트를 클릭하고

추천

출처www.cnblogs.com/tfeblog/p/11606968.html