希望增加可以对IIS上传文件的200K进行后台调节功能

lichangcheng 2021-8-5 998

希望增加可以对IIS上传文件的200K进行后台调节功能

最新回复 (2)
  • hws 2021-8-5
    引用 2

    您好,感觉您的反馈,我们将提交给开发部门的同事。

    事实上上传功能不仅仅要依赖IIS,还要依赖于网站程序的脚本,比如是PHP的话还需要设置PHP.INI的上传大小限制。

    IIS的话,暂时你可以通过以下办法来解决,在网站根目录下创建文件web.config,使用记事本打开复制粘贴以下内容。

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <security>
                <requestFiltering>
                    <requestLimits maxAllowedContentLength="102400000" /> 
                </requestFiltering>
            </security>
        </system.webServer>
        <system.web>
            <httpRuntime executionTimeout="1800" />
        </system.web>
    </configuration>

    maxAllowedContentLength:文件大小(字节)

    executionTimeout:超时时间(秒)

    如果已经网站根目录下存在有web.config文件,则只需要在相应节点处添加

    <requestFiltering>

                    <requestLimits maxAllowedContentLength="102400000" /> 

    </requestFiltering>


  • lichangcheng 2021-8-15
    引用 3
    谢谢!
返回
发新帖