源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

win2008 iis7 上传大文件限制的真正解决办法

  • 时间:2021-09-20 02:33 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:win2008 iis7 上传大文件限制的真正解决办法
iis7 上传大文件限制的真正解决办法 修改IIS_schema.xml这个文件要先获得这个文件的控制权; 进入目录C:\Windows\System32\inetsrv\config\schema,修改文件IIS_schema.xml 权限: [img]http://files.jb51.net/file_images/article/201202/201202090134112.jpg[/img] 进入IIS_schema.xml文件权限修改,选择”高级” [img]http://files.jb51.net/file_images/article/201202/201202090134113.jpg[/img] 选择”所有者” [img]http://files.jb51.net/file_images/article/201202/201202090134114.jpg[/img] 选中 administrators 确定 [img]http://files.jb51.net/file_images/article/201202/201202090134115.jpg[/img] 再进入权限编辑,修改administrators 完全控制. [img]http://files.jb51.net/file_images/article/201202/201202090134116.jpg[/img] 再去掉IIS_schema.xml的只读属性. 修改文件配置: 然后搜索 3000000 意思是 只允许上传 30MB 大小的文件,你在这后面多加一个0 就变成了 300MB 了就应该够用了。然后重启 IIS 7
[u]复制代码[/u] 代码如下:
<element name="requestLimits"> <attribute name="maxAllowedContentLength" type="uint" defaultValue="30000000" /> <attribute name="maxUrl" type="uint" defaultValue="4096" /> <attribute name="maxQueryString" type="uint" defaultValue="2048" /> <element name="headerLimits"> <collection addElement="add" clearElement="clear" removeElement="remove" > <attribute name="header" type="string" required="true" isUniqueKey="true" validationType="nonEmptyString" /> <attribute name="sizeLimit" type="uint" required="true" /> </collection> </element>
大约在1024行左右.
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部