C#控制用户上传文件web.config配置文件

版权声明:随便看,喜欢的话加我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>

猜你喜欢

转载自blog.csdn.net/qq_43687284/article/details/84171474