Jinghuang Network
Global Web Dev Global Web Dev
Win2008(IIS7)win2003 Asp上传文件不能超过200K的解决方案 asp只能上传200KB内的图要怎么改才可以上传更大的图 | Jinghuang Network

Win2008(IIS7)win2003 Asp上传文件不能超过200K的解决方案 asp只能上传200KB内的图要怎么改才可以上传更大的图

2022年10月11日 Jinghuang Network hk.0731jianzhan.com

在 Win2008(iis 7.0)和Win2003(iis 6.0) 中,默认设置是特别严格和安全的,这样可以最大限度地减少因以前太宽松的超时和限制而造成的攻击。

指定 ASP 请求的实体主体中允许大小为 200,000 (IIS6为204,800) 个字节,在 iis 6.0 之前的版本中,没有限制。 

 

这就造成了文件上传不能超过200k,而事实上是提交数据不能超过200k,你可以发一个很长的帖子试试,也会出现这个错误。


IIS7.0(windows 2008 win7)的修改方法如下:

 打开IIS管理器--双击“IIS”中的“ASP”-- 打开“配置 ASP 应该程序的属性”--展开“限制属性”;

 修改“最大请求实体主体限制”的值,默认值为200000(即不到200KB);

 把它修改为你想修改的大小,如:52000000(50MB)。

 修改完成点击“应用”OK!

 

 IIS6.0(windows 2003 xp)的修改方法如下:

 在服务里关闭iis admin service服务 

找到windowssystem32inetsrv下的MetaBase.xml,

 打开,找到AspMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200k 

把它修改为51200000(50MB)

 然后重启iis admin service服务

 

在 IIS 6.0 中,无法下载超过4M的附件时,可以按以下步骤解决:

 1、先在服务里关闭 iis admin service 服务。

 2、找到 windowssystem32inetsrv 下的 metabase.xml 文件。

 3、用纯文本方式打开,找到 AspBufferingLimit 把它修改为需要的值,默认为4194304(可修改为20M即:20480000)。

 4、存盘,然后重启 iis admin service 服务。

Previous: 网站首页关键词经常被篡改 网站安全怎么做 如何解决网站首页老是被篡改经常反复被篡改
Next: 网站与广告发布注意极限用语,网站那些词不可以用,网站极限词,这些广告用语不要用

Disclaimer: The content on this page is collected and edited by Jinghuang Network for reference only. We do not claim ownership or bear legal responsibility for external materials. If you find any copyright infringement, please contact us with proof, and we will remove the content within 5 working days. For more insights on Global Web Optimization and Global Web Development, please visit our official site (www.0731jianzhan.com).

Related News Relevant News
Recommended Services Hot Services
  1. Our Promise
  2. Our Strengths
  3. Our Future
Global Hotline

0731-82272030

Mon-Fri 09:00~18:00

Address: Room 1202, North Bldg, Xingwei Mingzuo, Yuhua Dist, Changsha

Jinghuang Network specializes in corporate sites, e-commerce, apps, and full-stack systems.

We provide stable, high-performance platforms with full tech support and maintenance.

WeChat Official

WeChat Official

Get
Quote

Submit Needs

×