笔记:IIS服务器中设置上传文件的大小

来源:互联网 发布:c语言log2函数 编辑:程序博客网 时间:2024/06/06 16:56
经典模式中设置如下:<system.web>        <httpRuntime targetFramework="4.5.2" maxRequestLength="102400"/><!--最大上传限制100M,以KB为单位-->  </system.web>集成模式下设置如下:  <system.webServer>   <security>      <requestFiltering>        <requestLimits maxAllowedContentLength="104857600"></requestLimits><!--最大上传限制100M,以字节为单位-->      </requestFiltering>    </security>      </system.webServer>
原创粉丝点击