上传文件大小超过500mb

时间:2023-02-12 01:51:30

I am facing an issue in my application.I have file with 200mb size. I want to give user access of uploading files with size up to 500mb. My config file has following setting for uploading file request.

我在申请中遇到了一个问题。我有200mb大小的文件。我想让用户访问大小为500mb的上传文件。我的配置文件有如下的上传文件请求设置。

  <httpRuntime
      executionTimeout="7200"
      maxRequestLength="2097151"/>

Still if i am uploading file with size of up to 200mb connection disrupt.I suppose i have already mention 2 hour limit in config.

如果我上传的文件大小高达200mb的连接中断。我想我已经提到了配置的两个小时限制。

Can anyone let me know the best and simplest way to upload file with huge size (Up to 500mb) ? Thanks in advance.

有没有人能告诉我上传文件的最好和最简单的方法(最大500mb) ?提前谢谢。

2 个解决方案

#1


1  

I don't see that the HTTP protocol is made for this scenario. IMHO I would do this over FTP.

我不认为HTTP协议是为这个场景而设计的。我可以通过FTP这么做。

#2


0  

This setting is for IIS6 and does not affect IIS7 in case you are using the latter. If this is the case, you should adjust this:

此设置用于IIS6,在使用后者时不影响IIS7。如果是这样,你应该调整一下:

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="SIZE IN KB"/>
            </requestFiltering>
        </security>
</system.webServer>

The default value is 30000000, less than 30Mb.

默认值是30000000,小于30Mb。

See more information in the IIS page about requestLimits.

请参阅IIS页面中有关requestlimit的更多信息。

#1


1  

I don't see that the HTTP protocol is made for this scenario. IMHO I would do this over FTP.

我不认为HTTP协议是为这个场景而设计的。我可以通过FTP这么做。

#2


0  

This setting is for IIS6 and does not affect IIS7 in case you are using the latter. If this is the case, you should adjust this:

此设置用于IIS6,在使用后者时不影响IIS7。如果是这样,你应该调整一下:

<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="SIZE IN KB"/>
            </requestFiltering>
        </security>
</system.webServer>

The default value is 30000000, less than 30Mb.

默认值是30000000,小于30Mb。

See more information in the IIS page about requestLimits.

请参阅IIS页面中有关requestlimit的更多信息。