I am trying to create a form for uploading multiple files with an angular app for the UI and a web API action to receive the data from the form. The form and API action works if the total size for all the form files is less than 20mb or so, but above this the browser displays an error page with the text "ERR_CONNECTION_RESET". I have generated a clean angular 5.2.11 project using angular cli 1.6.7 and inserted this code directly into app.component.html for simplicity:
<form name="form1" method="post" enctype="multipart/form-data" action="https://localhost:5001/api/v1/foo">
<div>
<label for="files">Upload file</label>
<input name="files" type="file" multiple />
</div>
<div>
<input type="submit" value="Submit" />
</div>
</form>
I even tried creating a flat HTML file with the above snippet and the same behavior still occurs; under 20mb everything works and the web API action is executed, but anything above 20mb displays ERR_CONNECTION_RESET in the browser and the API action is not hit. This behavior applies to both Chrome 71.0.3578.98 and IE 11
This obviously has to do with the total size of the uploaded files but without a web.config or appsettings.json I don't know if and where I can change this. Where is the limit set and is it possible to change it? Is it only possible to validate the total file size on the client side since the error occurs before the API action is hit?