IIS POST大小限制

IIS Post大小限制:maxAllowedContentLength默认30000000字节(约28M), maxRequestLength默认4MB,如果POST的参数很大,比如需要传base64字符串,需要设置这两个参数,系统判断时哪个小采用哪个,

  <system.web>
    <compilation debug="true" targetFramework="4.5.2" />
    <httpRuntime targetFramework="4.5.2" enableVersionHeader="false" maxRequestLength="204800" />
  </system.web>
 <security>
  <requestFiltering>
	<requestLimits maxAllowedContentLength="300000000" />
  </requestFiltering>
</security>
posted @ 2023-07-12 17:11  GIS民工  阅读(567)  评论(0编辑  收藏  举报