I have a file upload system and when I upload anything over 1.2GB even when using chunking at 20mb a chuck, I get a inputstream error when 75% uploaded. I am using the below and them merging the files once uploaded. I am guessing .net isn't dispose of the previous chucks and getting itself out of memory. any suggestions?
public ActionResult UploadChuck(HttpPostedFileBase file)
{
var filePath = "xxxx";
using (var fileStream = System.IO.File.OpenWrite(filePath))
{
inputStream.CopyTo(file.InputStream);
}
}