上传网页上的大文件? [英] Upload large files on webpage?

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

问题描述

我们使用MojoPortal到一个网站,并有上传文件是大约100 MB的上传模块的一些问题。 (普莱斯注意,这有可能是无关MojoPortal但与ASP.NET和IIS)

We use the MojoPortal to a website and have some problems to upload files that is around 100 MB with the upload module. (Pleas note that this has probably nothing to do with MojoPortal but with the ASP.NET and the IIS)

该MojoPortal被设置为使用普通文件上传(不工整上传),并能上传,我们已进行如下设置大文件:

The MojoPortal is set to use regular file Upload(not Neat Uploader) and to be able to upload big files we have set the following :

<httpRuntime maxRequestLength="2097151" executionTimeout="18000" requestValidationMode="2.0"/>

<compilation debug="false" defaultLanguage="C#" targetFramework="4.0">

问题是用于上传后,将一对夫妇分钟再予的(中止)取消掉。

The problem is that the upload will cacel after a couple of minuts (Aborted).

有没有办法,我需要设置使之成为可能的任何其他值?该MojoPortal本身不应该有此任何设置,据我知道,所以它的常规ASP.NET 4.0。

Is there any other values that I need to set to make this possible? The MojoPortal itself should not have any settings for this as far as I know so its regular ASP.NET 4.0.

BestRegards

BestRegards

推荐答案

我假设你的IIS 7或更高版本下运行这一点。 在这种情况下,你可能要更新这个属性以及在你的web.config:

I assume you're running this under IIS 7 or higher. In this case you might want to update this property as well, in your web.config:

  <system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="204800000"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>

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

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