I'm using fineuploader to upload a file. everything works fine for files under 200MB. everything over just fails. A new file is created but it's empty (meaning 0kb)
already modified my web.config to allow for up to 500mb uploads. but doesn't seem to help.
web.config:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000" />
</requestFiltering>
</security>
and
<httpRuntime targetFramework="4.5" maxRequestLength="512000" executionTimeout="900" requestLengthDiskThreshold="512000" />
Controller:
[HttpPost]
public ActionResult Upload(string qqfile)
{
try
{
Stream stream = Request.Files.Count > 0 ? Request.Files[0].InputStream : Request.InputStream;
string filePath = Path.Combine(@"C:\Temp\100", qqfile);
using (Stream file = System.IO.File.OpenWrite(filePath))
{
stream.CopyTo(file);
}
....
Why can't I upload files over 200MB?