本文介绍了大文件上传错误:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是lakshmana rao,我有一个网页,可将上传的大文件重定向到我的虚拟目录中的文件夹.在这里我遇到这样的错误
Hi this is lakshmana rao, i have an web page that redirects a large file uploads to the folder in my virtual directory. here i am getting an error like this
<pre lang="css">HTTP Error 404.13 - Not Found<br /> The request filtering module is configured to deny a request that exceeds the request content length.</pre><br />我正在使用像这样的代码
i am using code like this
<pre lang="c#">flupnewmessage.SaveAs(Server.MapPath("~/messages/" + flupnewmessage.FileName));而且我已经更改了我的web.config文件,例如
And i have change my web.config file like this
<system.web> <sessionstate mode="InProc" timeout="3"></sessionstate> <httpruntime executiontimeout="3000" maxrequestlength="102400" /></system.web> <system.webserver> <security> <requestfiltering> <requestlimits maxallowedcontentlength="26214400"> </requestlimits> </requestfiltering> </security> </system.webserver>而且我的IIS限制也限制为20000 仍然我得到同样的错误.谁能指导我如何上传大文件.
And my IIS limits are also cheged to 20000 Still i get the same error. can any one guide me how to upload large file.
推荐答案修复链接 HTTP错误404.13-未找到:请求过滤模块配置为拒绝超出请求内容长度的请求 [ ^ ] Fix link HTTP Error 404.13 - Not Found : The request filtering module is configured to deny a request that exceeds the request content length[^]
更多推荐
大文件上传错误:
发布评论