I'm have Windows 2000 Server and my website allows uploads of files (using <input type="file">) However I have some
problems when a user trys to upload a large (>8MB) file. When the user submits the form within about 5 seconds an error
message is returned (in FireFox it says "the document contains no data" in IE 6 it just redirects to a page that says
the "the page cannot be found". When I look in my webserver log it shows a 400 error. Of course this problem doesn't
happen with all users either. Is there any way to actually troubleshoot these problems? My web app is developed with
.NET but it doesn't appear that that is in anyway the problem since the error is returned so quickly. The file is not
even getting uploaded in that amount of time. I really need to get this fixed any help is appreciated (I don't want to
use a client side control to do the uploads since I have to support very unsophisticated users and several different
browsers on Mac, Windows, and Linux).


--Buddy

Re: File uploads by Nitin

Nitin
Sun May 08 23:30:16 CDT 2005

For web application, the max size for html file is set to a default of 4MB.
To increase this size to a desired value,add the following lines in the
web.config file

<httpRuntime maxRequestLength="102400"/>

inside the tags of </system.web>

the length is expressed in bytes. so the above value is 10 MB. You can set
upto 1500 MB approx, provided your page doesn't timeout before that.

To change the timeout, add/edit the following key

<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="true" timeout="60"/>

the timeout value is in seconds.




We are using these techniques for file upload for our app. If you find a
better way, please reply



Nitin Singh

NOIDA, India
n i t i n s i n g h 8 1 ****** @ ****** g m a i l ^^^^^^^ dot ##### c
om