问题描述
除了metabase.xml文件还有其他地方可以修改文件上传大小吗?
Is there any other place besides the metabase.xml file where the file upload size can be modified?
我目前正在运行带有 IIS6 的临时服务器,它被设置为允许上传最大 20mb 的文件.这工作得很好.我有一个新的生产服务器,我试图在其中设置相同的可用大小限制.所以我编辑了 metabase.xml 文件并将其设置为 20971520.然后我重新启动了 IIS,但没有奏效.所以我然后重新启动了整个服务器,这也不起作用.我可以上传大约 2mb 的文件,所以它绝对允许文件大小大于标准的 200kb 默认大小.我尝试上传一个 5mb 的文件,但我的 upload.aspx 页面完全崩溃了.是否有可能我需要配置其他东西?生产服务器位于服务器场中,是否可以在那里设置一些限制?
I am currently running a staging server with IIS6 and it is setup to allow uploading of files up to 20mb. This works perfectly fine. I have a new production server where I am trying to setup this same available size limit. So I edited the metabase.xml file and set it to 20971520. Then I restarted IIS and that didn't work. So I then restarted the entire server, that also didn't work. I can upload files around 2mb so it is definitely allowing file sizes larger then the standard 200kb default size. I try uploading a 5mb file and my upload.aspx page completely crashes. Is it possible there is something else I need to configure? The production server is located on a server farm, could there be some limits set on there end?
谢谢
推荐答案
如果您使用的是 ASP .NET,则需要修改 maxRequestLength web.config 属性.
If you're using ASP .NET, then you need to modify the maxRequestLength web.config property.
请参阅此链接.
这篇关于在 iis6 中增加文件上传大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!