Click to See Complete Forum and Search --> : need help Limiting user upload size by changing the web.config


neil
08-26-2004, 05:33 AM
Hi,

I remember reading how to do this before but if anyone can help I'd much appreciate it

thanks Neil

PeOfEo
08-26-2004, 10:37 PM
Humm... never heard of it from the web.config, but you can definatly do it from the upload form.

neil
08-31-2004, 07:26 AM
can't get into the code behinds because it was developed by another party and it all runs from a dll

PeOfEo
08-31-2004, 08:45 AM
yuck....

neil
08-31-2004, 08:52 AM
i know

unless there's money involved the code behinds are intellectual property of the programmer they hired externally and cannot be obtained :(

PeOfEo
08-31-2004, 07:30 PM
http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626 this has a little information. Yes there is a default limit, I have run into it myself, but you can do it in machine.config and web.config apparently.

Xb90
04-28-2005, 10:17 AM
Add a "httpRuntime" tag inside of the <system.web> area.

Sample:
<configuration>
<system.web>
<httpRuntime
maxRequestLength="1048576"
executionTimeout="3600"
/>
</system.web>
</configuration>

maxRequestLength=max files size (in bytes) allowed for upload
executionTimeout=number of seconds allowed before asp.net kills the operation

More info here (http://authors.aspalliance.com/aspxtreme/aspnet/syntax/httpruntimesection.aspx)