Recently faced the big problem with big files. Not so big, just needed to post files with size about 10-20MB to aspx page. With usage of quite standard control on the page.
Everybody know ( if not - I notice here ) that in web.config you have HttpRuntime settings. And one of these settings is maxRequestLength .In theor, after adding of this line to web.config file everything should work fine.
<httpRuntime maxRequestLength="100000"/>
But in fact you can face the problem of limit in IIS. And this is a pain in the ass. Because you need to edit Metabase.xml on server. Sometimes this can be impossible, but sometimes you can do this yourself or ask support. Here is some insturctions to make big files uploads work for you.
IIS 6 has a limit on the maximum number of bytes that can be
contained in an ASP request. By default, that limit is 4 MB. To change this:
- Open IIS (Start->Programs->Administrative Tools-Internet Information Services)
- Right-Click the server name and select Properties
- Check the Enable Direct Metabase Edit box and hit Apply
- Next browse to and open the Metabase.xml file. It is typically
located in c:\Windows\System32\inetsrv directory. You can use Notepad
to modify this file.
- Search for "ASPMaxRequestEntityAllowed" and change its value to "1073741824"
- Save changes in Notepad and exit.
Later you can set your own limits in web.config. For example, using <location> tag you can apply
maxRequestLength only for specific pages.