Script(s)

what I learn is what u c

How can I upload larger files with ASP.NET?

with one comment

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.

Advertisements

Written by gchandra

January 29, 2007 at 4:56 pm

Posted in Web Coding

One Response

Subscribe to comments with RSS.

  1. […] How can I upload larger files with ASP.NET? […]

    using …

    October 14, 2008 at 5:48 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: