在ASP.NET MVC 3大于2GB文件上传更大 [英] Uploading files greater than 2GB in ASP.NET MVC 3

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

问题描述

我试图将视频上传大于2GB的文件上的ASP.NET MVC 3项目,但最高上传文件大小为ASP.NET 4.0似乎是2GB。有没有一种方法,以超过ASP.NET/IIS此限制?还是什么话另一种方法是解决这个问题?

I am trying to upload video files larger than 2GB on an ASP.NET MVC 3 project however the maximum file upload size for ASP.NET 4.0 seems to be at 2GB. Is there a way to exceed this limitation in ASP.NET/IIS? or what would another approach be to get around this?

我也使用uploadify作为我的文件上传的控制。任何帮助和资源实现这一目标AP preciated。

I am also using uploadify as my file upload control. Any help and resources for achieving this appreciated.

干杯

推荐答案

根据我的经验有没有办法在一个请求上传文件超过2GB。有在IIS中的2Gb的限制,有没有解决方法。

According to my experience there is no way to upload file over 2Gb in a single request. There is a 2Gb limitation in IIS, and there is no workaround.

在.NET 4.0和更早的版本也有一个2GB的(有些人说4GB)在ASP.NET的限制,即<一个href=\"http://aspnet.uservoice.com/forums/41199-general-asp-net/suggestions/2642879-maximum-upload-size-in-asp-net-is-2gb-increase-it\"相对=nofollow>固定在.NET 4.5 。然而此修复程序使一个没有多大意义,因为IIS本身并不支持文件上传超过2GB。

In .Net 4.0 and earlier there were also a 2Gb (some people say 4Gb) limitation in ASP.NET, that was fixed in .Net 4.5. However this fix makes a little sense because IIS itself does not support file uploads over 2Gb.

要超过2GB的文件上传到IIS托管服务器的唯一方法是将其拆分成块,一块一块上传。以下是可以上传打破一个文件分成部分客户:

The only way to upload files over 2Gb to IIS-hosted server is to break it into pieces and upload piece by piece. Here are clients that can upload breaking a file into segments:


  1. 它击中了Ajax的文件浏览器

  2. 样品的WebDAV的浏览器

  1. IT Hit Ajax File Browser
  2. Sample WebDAV Browser

请注意,这些客户需要你的服务器来支持Range头PUT。

Note that these clients require your server to support PUT with Range header.

另一种解决方案是创建的HttpListener基于服务器。的HttpListener具有比较于IIS少得多的功能,但它不具有任何的上传限制。

Another solution is to create a HttpListener-based server. HttpListener has much less functionality comparing to IIS but it does not have any upload limitations.

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

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