ali raza

C#, .Net , and my thoughts

how to upload larger files in 2

by default application did not upload file more than 4.5 mb or 4 mb. For this purpose You have to add following http runtime tag in web.cofig of web site.

<httpRuntime executionTimeout=90 maxRequestLength=20096useFullyQualifiedRedirectUrl=false minFreeThreads=8 minLocalRequestFreeThreads=4appRequestQueueLimit=10000;/>

you have to change two setting in above code.MaxRequestLength (Here you mention the size limit of file , bydefault it is 4 mb) and appRequestQueueLimit (it is the time when application take time to upload the request.)

4 responses to “how to upload larger files in 2

  1. Erepopigree March 3, 2008 at 3:11 pm

    Hello there.
    Just found your site. Great job!
    I like it much.

  2. Ricardo May 9, 2008 at 5:58 pm

    I tried this in my website
    to upload images and even it works, it is so slow that is unpractical.

    Also if you have some other input fields in the page, validations on these fields only happen after the full upload. This makes the page not very user friendly, because you have to wait for several seconds to know you forgot a value in a field.

  3. aliraza May 9, 2008 at 6:29 pm

    Usually in simple application we have upload file less then 4 mb, i test it up to 20 mb files, it works

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: