I\'m creating a website in Asp.net core 2.0 which allows files to be uploaded. I quickly came across the problem of the 30MB upload limit and receive a 4
The RequestSizeLimit attribute allows you to define the maximum request size within your code but it is still limited by maximum request size supported by the server itself.
In this case, I suspect you're receiving this error:
HTTP 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length.
This error is being triggered by ISS because the call exceeded IIS' maxAllowedContentLength value (the default is 30,000,000). From the documentation:
The following error indicates your file upload exceeds the server's configured
maxAllowedContentLength. The default setting is30000000, which is approximately28.6MB. The value can be customized by editing theweb.config: