步骤1:
修改win2003上传限制,找到windows/system32/inserv/metabase.xml文件
将其中的 aspmaxrequestentityallowed= 的值改为1073741824 (1G)
注意修改前要停止IIS等服务。
步骤2:
如果你装的是net1.1,请找到windows/.../v1.1.4322/config/machina.config文件,将execution timeout改为36000
将maxrequestlenth 值设为 1048576 (1G)
如果你装的是net2.0,请找到windows/.../web.config文件,在</system.web></configuretion>这一行的上方插入一行,
<httpruntime maxrequestlenth="1048576" executiontimeout="3600"/>
ASP.NET上传大于4M的文件的相关设置
最新推荐文章于 2024-08-31 01:09:05 发布