I am trying to upload large file over 2GB to ASP.NET MVC 5 on IIS. I googled and found that IIS has 2GB http request limit and MS did not have fixed it yet.
I found a workaround using StreamContent class with HttpContext.Current.Request.GetBufferlessInputStream(true) at the following link; (see Priyanka's answer)
Exceeding the 2GB file upload limitation in IIS 7.5 and .NET
I confirmed that it worked if only Content-Length header was not set at http request.
So, I succeeded in uplading a file over 2GB with PostMan where Content-Length header was unchecked.
However, my real world application uploads file with HTML/Javascript and Content-Length header is always set and IIS treats the http request as bad request though I changed web.config.
So, I am finding a way to strip(remove) Content-Length header in http request. I found a hint that it may be possible with IIS Url Rewrite.
Could you pleae let me know how to strip(remove) Content-Length header in http request using IIS Url Rewrite?
Best regards.