maxRequestLength - ファイル サイズのアップロード制限 (たとえば、File/New 用に 1 つ、Picture/New 用に 1 つ) に複数の設定が必要です。私のすべてのアクションは、追加のパラメーターを取ります (例: /File/New?folderId=234)。
単一の設定は期待どおりに機能します。
<httpRuntime executionTimeout="60" maxRequestLength="1024" />
ルート web.config に 2 つの場所セクションを持つ 2 つの設定をしようとしましたが、成功しませんでした。「パス」に何を書くべきかわかりません-ビューの物理aspxページ、またはコントローラー+アクション...しかし、何も機能していないようです。
<location path="/File/">
<system.web>
<httpRuntime executionTimeout="60" maxRequestLength="4096" />
</system.web>
</location>
<location path="/Picture/">
<system.web>
<httpRuntime executionTimeout="60" maxRequestLength="1024" />
</system.web>
</location>
従来の Webform ASP.NET で動作するように、特定のビュー フォルダー (/Views/Picture/... など) に別の web.config を配置しようとしましたが、これもうまくいかないようです...
<location path="">
<system.web>
<httpRuntime executionTimeout="60" maxRequestLength="1024" />
</system.web>
</location>
私が何をしても、httpRuntime.maxRequestLength の 1 つの値のみが適用されます - (ルート) web.config...system.web.