简体   繁体   中英

Increase the maximum file size for ASP.NET Core API

So I have a web API using the current version of ASP.NET Core, that has a image uploaded to it from an external site. By default, the server will only accept an image if the file size is below 1 MB otherwise it returns a 413 status code. How would I go about configuring the server/controller to allow a larger file?

原来问题不在ASP.NET服务器的配置中,但实际上与Ngixn有关,因此我必须为此修改配置文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM