Where do I set HttpContext.Request.GetBufferlessInputStream(true)? I am trying to allow the user to upload files larger than 2GB and obviously I am running into the "maxRequestLength" int type restriction. I have tried to create a StreamReader the following way:
var reader = new StreamReader(HttpContext.Request.GetBufferlessInputStream(true));
But I'm doing it in a controller and I end up getting the following error:
"This method or property is not supported after HttpRequest.Form, Files, InputStream, or BinaryRead has been invoked."
So I'm guessing I have to make this change before the controller method gets called. I've searched stack overflow and many other websites for answers, but all I've found is how to use it not where to use it.
Thank you for your time and helping me out with this.