我要求将图像20mb上传到azure存储。为此我暴露了一个API控制器,它将接收图像作为base64字符串。我在web.config中将maxallowedcontentlength设置为20 mb。一旦我推到azure然后测试它不能按预期投掷模型实体错误的移动服务,它在本地机器上工作正常。在我使用的配置更改下面
<system.web>
<httpCookies httpOnlyCookies="true" requireSSL="true"/>
<httpRuntime targetFramework="4.5" executionTimeout="9000" enableVersionHeader="false" maxRequestLength="20000000"/>
<compilation debug="true" targetFramework="4.5"/>
</system.web>
<system.webServer>
<security>
<requestFiltering removeServerHeader ="true">
<requestLimits maxAllowedContentLength="20000000"></requestLimits>
</requestFiltering>
</system.webServer>
请你帮我解决一下这个问题。
此致
奋进