在.NET中上传文件大小超过4 MB [英] Uploading file size over 4 MB in .NET

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

问题描述

我上传的文件大小超过4 MB时遇到问题.我尝试添加

I am having trouble uploading a file size over 4 MB. I've tried adding

<httpRuntime maxRequestLength="102400" executionTimeout="99999" />

像许多帖子所建议的那样,对我的Web.Config进行

设置,但它无法正常工作. 4 MB以下的文件可以正常工作,因此我几乎可以确定4 MB的限制. IIS中是否需要更改任何设置?

to my Web.Config like many posts have suggested, but it just isn't working. Files under 4 MB work just fine, so I'm nearly certain I'm running into the 4 MB limit. Are there any settings in IIS that I might need to change?

推荐答案

您需要在web.config中更新maxrequestlength的值:

You need to update the value of maxrequestlength in the web.config:

maxRequestLength的最大值?

最大请求长度

这篇关于在.NET中上传文件大小超过4 MB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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