大文件上传错误:

编程入门 行业动态 更新时间:2024-10-24 12:31:07
本文介绍了大文件上传错误:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

大文件上传错误:

本文发布于:2023-11-01 12:26:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549327.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:大文件   错误   上传

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!