2013-03-11 55 views

回答

3

您的代码可能是正确的,因为它适用于小文件,但不要忘记更新IIS7或IIS8的配置以允许POST大小超过30MB(IIS的默认限制设置为30MB)。

你需要编辑web.config和补充一点: (在这个例子中,允许最多250MB)

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