版权声明:随便看,喜欢的话加我qq,一起讨论。 https://blog.csdn.net/qq_43687284/article/details/84171474
如果要控制用户上传文件需要在web.config配置文件里面写入如下代码
代码需要写在2个<system.web>标签内。
<system.web>
<compilation debug="true" targetFramework="4.6.1"/>
<!--控制用户上传文件最大为4M,最长时间为60秒,最多请求数为100-->
<httpRuntime maxRequestLength="4096" executionTimeout="60" appRequestQueueLimit="100"/>
<system.web>