如何在 ASP.NET 上上传 10gb 文件 [英] How to upload up 10gb file on ASP.NET

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

问题描述

我在 asp.net 上做了一个应用程序,我正在保存一个视频和音频文件是 sql server我在服务器上上传大文件时遇到问题.appls 托管在 ISS7 上,我在这里使用了 web.config 文件中的代码,如下所示:

I have done a application on asp.net and I'm saving a video and audio file is sql server i have a issue with uploading big file over on sever. appls is hosted on ISS7 here i used a code in web.config file that is a below:

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

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

但我在上传时间时遇到错误,如下图所示:

but im getting error on uploading time that is below in image:

请帮助我如何使用 ISS7 上传最大 10GB 的文件10GB 文件我保存为 varbinary(MAX) 和 10GB 以字节转换

please help me out how can i upload files up to 10GB with ISS7 10GB file im save ing as a varbinary(MAX) and 10GB was converting in Byte

推荐答案

使用开箱即用的 ASP.NET,您将无法上传那么大的文件,因为 IIS 要么超时,要么您将超出大小限制(阅读:maxRequestLength IIS 设置).

With out-of-the-box ASP.NET, you are not going to be able to upload a file that big, because IIS will either timeout or you will exceed the size limitations (read: maxRequestLength setting for IIS).

您有几个选择:

  1. 自定义 HTTP 模块

  1. Custom HTTP module

NeatUpload 是免费选项.

银光/闪光灯选项

SWFUpload 是免费选项.

异步分块选项

RadAsyncUpload - Telerik 的 ASP.NET AsyncUpload 是付款选项,请查看网站了解定价.

RadAsyncUpload - Telerik's ASP.NET AsyncUpload is a pay option, check website for pricing.

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

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