I want to upload a file from my web application to a HttpTriggered Azure Function. I have the following code :
[FunctionName("UploadFileToStorage")]
public static async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "upload")] HttpRequest req
, ILogger log)
{
var formdata = await req.ReadFormAsync();
}
This line of code that reads form data triggers the following exception : System.IO.InvalidDataException: 'Multipart body length limit 16384 exceeded.'
I cannot figure out how to allow bigger file to be uploaded. I know for asp.net core you can do this but what about Azure Functions ?