c# - 将超过 4 GB 的文件上传到 .net Core 5 API
问题描述
我尝试过的:
<system.webServer>
< security >
< requestFiltering >
< requestLimits maxAllowedContentLength="4294967295" / >
</ requestFiltering >
</ security>
</system.webServer>
和
services.Configure<FormOptions>(o =>
{o.ValueLengthLimit = int.MaxValue;
o.MultipartBodyLengthLimit = 4294967295;
o.MemoryBufferThreshold = int.MaxValue;
});
services.Configure<IISServerOptions>(options => {
options.MaxRequestBodySize = 4294967295;
});
但它限制为 4 gb .. 但我的客户想通过这个 Rest API 传输 16 gb 的文件。我不信。可能吗 ?
解决方案
推荐阅读
- sql - SQL 用符号替换 HTML 实体编号/代码
- javascript - 错误:无法解析 Angular6 中 MenuController 的所有参数
- docker - Docker容器和mysql容器连接错误
- python - 从另一个 Django 应用程序模型字段中自动生成模型字段的值
- html - 如何将 Boostrap 导航栏缩小为一行?
- wordpress - “Laravel”中有什么原因要更新新添加的功能吗?
- apache-spark - 使用 spark 过滤与日志文件中的单词匹配的行时出错
- docker - 如何对接定制的基于 Apache Karaf 服务器的应用程序?
- powershell - Powershell 集合类构造函数
- shell - 将 find 与 printf 和 or 一起使用