How can I upload larger files with ASP.NET?

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



[httpRuntime maxRequestLength=”10000″ /]


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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: