2012-08-14 18 views
5

特にIIS Expressの30MBアップロード制限を削除する方法を知っている人はいますか?IISの30MBアップロード制限を削除する

私は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> 

が正しく設定されているように見えますか?

アイデア?

+1

BYTESでmaxAllowedContentLengthを設定します。 maxRequestLength in KILOBYTES –

答えて

9

サーバーの設定ファイルを変更する必要があります。それはデフォルトをオーバーライドする必要があります追加し、存在しない場合は、あなたが探しているフィールドは

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

です。

+1

WhoopsはKBでBを設定していませんでした。 –

+1

ところで、設定ファイルは〜\ Documents \ IISExpress \ configにあります – guogangj

関連する問題