Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload files over 2Gb to IIS 7.5 / .Net 4?

As far as I know IIS and ASP.NET has a limitation of 2Gb files upload. Are there any solutions for this in IIS 7.5 and .Net 4?

like image 319
IT Hit WebDAV Avatar asked Jul 23 '11 18:07

IT Hit WebDAV


People also ask

How increase upload limit in IIS?

From the Actions pane on the right hand side of the screen click Edit Feature Settings... link. The Edit Request Filtering Settings window displays. In the Request Limits section, enter the appropriate Maximum allowed content length (Bytes) and then click the OK button.

What is max upload size IIS?

IIS limits the upload file size by default to 30000000 bytes which is approximately 28.6 MB. This can also be caused by a size restriction by the SMTP server configuration.

What is the maximum file upload size in Asp net?

Max Upload File Size in IIS and ASP.NET (. By default maximum upload size is set to 4096 KB (4 MB) by ASP.NET. To increase the upload limit add an appropriate section to your web.


1 Answers

I found a blog post that explains the cryptic error "ASP.NET detected invalid characters in the URL."

From the blog post:

When the integrated pipeline is used, we go though webengine code (webengine4!MgdGetRequestBasics) which doesn't support more than 2 GB content-length and a System.ArithmeticException exception is raised which subsequently cause the HTTP 400 error. With the classic pipeline, we don't use webengine4 but the old ASPNET_ISAPI model and we don't hit the above issue.

The post also describes how the author was able to upload files larger than 2 gigs.

like image 144
Joel Harris Avatar answered Oct 12 '22 13:10

Joel Harris