【发布时间】:2018-03-26 02:07:44
【问题描述】:
我正在运行一个 ASP.NET Core Web 应用程序并想上传大文件。
我知道在运行 IIS 时,可以通过web.config 更改限制:
<httpRuntime maxRequestLength="1048576" />
...
<requestLimits maxAllowedContentLength="1073741824" />
在运行新的 ASP.NET Core Kestrel Web 服务器时如何做同样的事情?
我收到异常“请求正文太大。”
【问题讨论】:
标签: file-upload asp.net-core asp.net-core-2.0 kestrel-http-server