点击进入在线实时咨询或给我们留言!

设置上传文件的最大大小

来源:互联网  时间:2006-7-11  字体:    

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

http://pyt5208.cnblogs.com/archive/2006/07/10/446994.html

©2004-2010 版权所有 · 广州子言网络 [ 英文网店系统建设专家 ]

联系电话:020-3600  粤ICP备05066100号