问题描述
我正在尝试使用我的网站上传文件.一切正常,直到我尝试上传的文件为4MB或更多为止.
I am trying to upload a file using my website. Everything works file until the file which I am trying to upload is 4MB or more.
我已经检查了IIS7.5设置,看来它设置为30MB上传大小.我正在使用FCKEditor上传文件.
I have checked the IIS7.5 settings, and it seems to be set to 30MB upload size. I am using FCKEditor to upload the files.
FCKEditor是否有文件上传限制?如果是,该如何更改?如果没有,为什么我不能上传4MB或更大的文件?
Does FCKEditor have a file upload limit? If yes, how do I change it? If no, why can't I upload files which are 4MB or more?
推荐答案
增加web.config&中的默认值为4096(= 4 MB)maxRequestLength
至1 GB. 60000秒或您认为需要花费的任何时间
Increase The default is 4096 (= 4 MB) maxRequestLength
to 1 GB in web.config & 60000 seconds or whatever time you think it will take to upload
<system.web>
<httpRuntime maxRequestLength="1048576" executionTimeout="60000" />
</system.web>
这篇关于无法上传4MB或更大的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!