Experiencing an issue when uploading any file greater than 30meg with “Request body too large. The max request body size is 30000000 bytes”.
This is an Isolated Azure Function running the aspnetcore integration.
The function throws the exception when performing the copyasync
using MemoryStream ms = new MemoryStream(); await req.Body.CopyToAsync(ms); byte[] webmBytes = ms.ToArray();
Within the function start I am just calling the ConfigureFunctionsWebApplication. Can this be extended to solve the issue within the host?
I have tried specifying the FUNCTIONS_REQUEST_BODY_SIZE_LIMIT within the environment variables, adding [RequestSizeLimit(40000000)] to the function method. But am still hitting the aspnet core default 30meg ish limit, rather than the Azure Function limit of 100meg.