如何上传较大的文件? [英] How to upload larger files?

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

问题描述

我正在尝试上传文件,女巫的大小为6.38 mb,但是我进行了研究,您只能上传4 mb.

I am trying to upload a file witch is 6.38 mb, but i did research and you can only upload 4 mb.

有人告诉我要在web.config文件的 部分中更改 maxRequestLength .

I was told to go change maxRequestLength in the section in the web.config file.

但是我不能在我的web.configs中很好地 maxRequestLength .

But i cant fine or maxRequestLength in my web.configs.

有人可以告诉我在哪里可以使用MVC找到它们,或者如何让较大的文件上传.

Could some one please tell me where i could find them using MVC or how to let larger files be uploaded.

推荐答案

您是否按照下面的说明查找httpRuntime密钥?
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
AFAIK,如果配置文件中没有密钥,则可以自己添加.
如果增加允许的上传大小,则可能还必须调整超时值.

Did you look for httpRuntime key as explained bellow?
http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx
AFAIK if the key is NOT present in your config file you can add it yourself.
You may have to adjust the timeout values too if you increase the allowed upload size.

P.S.4MB或6MB是大上传-我在平均上载以GB为单位的网站上工作,即5-10GB是最大.

P.S. 4MB or 6MB are NOT large uploads - I worked on the sites where the average uploads were measured in GBs, i.e. 5-10GB was NOT the largest.

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

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