前边实现了Ajax无刷新上传文件,但是不能上传大文件,网上查找发现在web.config中加入
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" /> 即可
<system.web>
<sessionState mode="InProc" timeout="15" />
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" maxRequestLength="2097151" executionTimeout="3600" />
<authentication mode="Windows" />
</system.web>