using …

Pure C#

How can I upload larger files with ASP.NET?

Yazan: esersahin 14/10/2008

http://gchandra.wordpress.com/

By default, the file size limit on uploads in ASP.NET is 4mb.  If you need to upload more than 4 MB .. here you go

To upload larger files through HTTP, you can use a configuration setting in your application Web.config file or your machine Web.config file:


Replace [ ] with angle brackets

[configuration]

[system.web]

[httpRuntime maxRequestLength="10000" /]

[/system.web]

[/configuration]
where “10000″ is the file size in Kbytes that you want to allow.  You can go upto 1GB.

If webservice is called for saving the files, then this configuration has to be made in both the applications.

WebService application and Web application.