大文件上传错误: [英] large file upload error :

查看:78
本文介绍了大文件上传错误:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是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[^]


这篇关于大文件上传错误:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆