How can I pass a moderately large volume of data to my Web API app?

♀尐吖头ヾ 提交于 2019-12-05 20:55:19
David Pine

I believe that since you have already specified the <requestFiltering> settings, you then need to also set the maxRequestLength. As @brewsky mentions, this is defaulted it is only 4MB. Check your web.config. This is setup for 2GB

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="2147483648" />
    </system.web>
</configuration>

This SO answer does seem to address a similar issue.

You have to setup IIS to accept big files. By default it is only 4MB or so. Check your web.config. This is setup for 2GB:

        <requestLimits maxAllowedContentLength="2147483648" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!