取消IIS Express的30MB上传限制 [英] Remove 30MB upload limit on IIS express

查看:179
本文介绍了取消IIS Express的30MB上传限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何删除30MB的上传限制,特别是针对IIS Express吗?

Does anyone know how to remove the 30MB upload limit, specifically for IIS Express?

我已经尝试编辑applicationhost.config和

I've tried editing the applicationhost.config and

 <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1050000"></requestLimits>
      </requestFiltering>
    </security>

<location path="api/media/AsyncUpload">
    <system.web>
      <httpRuntime maxRequestLength="1050000" /> 
<!-- The size specified is in kilobytes. The default is 4096 KB (4 MB). 1gb = 1048576 -->
        </system.web>
      </location>

似乎设置正确?

有任何想法吗?

推荐答案

您应该更改服务器配置文件。您要查找的字段是

You should change the server config file. The field you are looking for is

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="524288000"/>
            </requestFiltering>
        </security>
</system.webServer>

如果它不存在,则添加它应覆盖默认值。

If it doesn't exist, adding it should override the defaults.

这篇关于取消IIS Express的30MB上传限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆