Uploading files greater than 2GB in ASP.NET MVC 3

前端 未结 1 1154
耶瑟儿~
耶瑟儿~ 2021-01-18 08:59

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 exce

相关标签:
1条回答
  • 2021-01-18 09:22

    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.

    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.

    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. IT Hit Ajax File Browser
    2. Sample WebDAV Browser

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

    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.

    0 讨论(0)
提交回复
热议问题