I have an endpoint to upload videos
app.MapPost("/video/upload", async (HttpRequest request) =>
It works with small videos but when I try to upload a video of larger size I get an error saying that I exceeded the allowed size
I have an endpoint to upload videos
app.MapPost("/video/upload", async (HttpRequest request) =>
It works with small videos but when I try to upload a video of larger size I get an error saying that I exceeded the allowed size
3
Answers
We can configure kestrel through the builder value and specify the max request body size
null
means that there is no limit.This can be configured in the
web.config
file.This will set the limit to 1GB
You can use
IHttpMaxRequestBodySizeFeature