前边实现了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>

本文介绍如何通过修改Web.config文件中的httpRuntime设置来增加ASP.NET应用中的最大文件上传大小,并调整执行超时时间,确保可以成功上传大文件。
1115

被折叠的 条评论
为什么被折叠?



