上传网页上的大文件?大文件、上传、网页

2023-09-07 16:36:51 作者:仙女山的月亮

我们使用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>