pyt5208
在web.config中添加httpRuntime元素,如下:
<configuration>
   <system.web>
      <httpRuntime maxRequestLength="8192"
         useFullyQualifiedRedirectUrl="true"
         executionTimeout="45"
         versionHeader="1.1.4128"/>
   </system.web>
</configuration>
其中maxRequestLength属性就是限制上传大小的,如设为"8192"即为8M。

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-11-15
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-10-29
相关资源
相似解决方案