Asp.net mvc 4 使用XMLHTTPRequest上载Asp.NETMVC大文件
我正在使用XMLHttpRequest将多个文件上载到ASP.NET MVC控制器中。我将多个文件附加到FormData并在一个XMLHttpRequest中发送它们,我使用的是IISExpress。 通过在google上搜索,我将web.config更改如下:Asp.net mvc 4 使用XMLHTTPRequest上载Asp.NETMVC大文件,asp.net-mvc-4,xmlhttprequest,Asp.net Mvc 4,Xmlhttprequest,我正在使用XMLHttpRequest将多个文件上载到ASP.NET MVC控制器中。我将多个文件附加到FormData并在一个XMLHttpRequest中发送它们,我使用的是IISExpress。 通过在google上搜索,我将web.config更改如下: <httpRuntime targetFramework="4.5" maxRequestLength="2147483647" executionTimeout="3600" requestLengthDiskThreshold
<httpRuntime targetFramework="4.5" maxRequestLength="2147483647" executionTimeout="3600" requestLengthDiskThreshold="2147483647"/>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483644"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>
xhr.open("PUT", myForm.action, true);
但是我仍然不能提出超过30 MB的请求!!我真的需要让它工作起来,所以我希望有人能尽快帮助我。尝试从xhr.open函数中删除异步“true”尝试从xhr.open函数中删除异步“true”