![](/img/trans.png)
[英]How can I upload large (30Mb) files in a ASP.NET application ? (VB) I've tried raising MaxRequestLength, but no luck
[英]Remove 30MB upload limit on IIS express
有誰知道如何刪除30MB上傳限制,特別是對於IIS Express?
我已經嘗試編輯applicationhost.config和
<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>
好像設置正確嗎?
有任何想法嗎?
您應該更改服務器配置文件。 你正在尋找的領域是
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000"/>
</requestFiltering>
</security>
</system.webServer>
如果它不存在,添加它應該覆蓋默認值。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.