通过ASP.NET应用程序上传大文件(最大100gb) [英] Uploading a large file (up to 100gb) through ASP.NET application

查看:209
本文介绍了通过ASP.NET应用程序上传大文件(最大100gb)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以某种方式实现通过我们公司网络中运行的ASP.NET应用程序上传文件的功能.问题在于这些文件越来越大.目前,我们使用的是非常通用的异步上传功能,但问题在于文件越来越大,并且通过maxAllowedContentLength设置的每个文件的最大限制为3.9gb,因为uint的最大值不允许再做任何其他操作.用户应该上传的文件很快就会超过该值,并且可能会达到100gb.

I need to somehow implement an ability to upload files through an ASP.NET application which is working within our corporate network. The problem is those files are getting increasingly big. At the moment we're using a very generic asynchronous upload but the problem is that files are getting increasingly big and the max limit of 3.9gb per file set through maxAllowedContentLength since the max value of uint won't allow anything more. Soon files which users are suppose to upload will exceed this value and might reach up to 100gb in size.

我试图在网上寻找解决此问题的方法,但是在大多数大文件文章中,人们充其量只能表示1GB.

I tried looking online for some solution to this problem but in most articles by large files people mean 1gb at best.

那么有什么方法可以通过ASP.NET MVC \ WebAPI应用程序上传非常大的文件(最大100g),还是我需要寻找替代解决方案?

So is there any way to upload really large files (up to 100g) through ASP.NET MVC\WebAPI application or I need to look for alternative solutions?

推荐答案

是的,您需要将文件拆分为较小的部分,请参见此处的示例:

Yes there is, you need to split the file in smaller parts see the example here: http://forums.asp.net/t/1742612.aspx?How+to+upload+a+big+file+in+Mvc+

这篇关于通过ASP.NET应用程序上传大文件(最大100gb)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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