asp.net 中上传文件大小设置,IIS上传文件大小设置

<system.web>

  <httpRuntime requestValidationMode="2.0" maxRequestLength="3072" ></httpRuntime>

  <!--单位:KB 3072=3MB   默认是4MB,最大支持2GB-->

 </system.web>

<system.webServer>

 <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483648" />
        <!--单位:字节B  2147483648=2 GB 默认是4MB,最大支持2GB-->
      </requestFiltering>
    </security>

</system.webServer>

posted @ 2020-02-26 10:58  阳光下丶  阅读(204)  评论(0编辑  收藏  举报