Re: When does the httpRuntime maxRequestLength setting kick in?
- From: "bruce barker \(sqlwork.com\)" <b_r_u_c_e_removeunderscores@xxxxxxxxxxx>
- Date: Mon, 8 May 2006 09:00:10 -0700
maxRequestLength is used to monitor the input stream (upload). if the max
length is hit, then asp.net closes the request stream giving the browser an
error. so if you max was set a 2mb, and the user tried to upload a 4mb file,
they would get an error in the middle of their upload, and your webhost
would charge you for 2mb of bandwidth.
-- bruce (sqlwork.com)
"Andy Stephens" <andrew.stephens@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:98EA95A2-E7E9-48AC-8B32-F100AA26B94D@xxxxxxxxxxxxxxxx
Hi all
I'm developing a site where visitors can upload images (using the html
file
input control). As most webhosting companies set a monthly bandwidth limit
I
want to try and limit the size of uploads.
I thought about using the <httpRuntime> "maxRequestLength" setting, which
throws an exception if a HTTP request is too large. Does anyone know if
this
will work, or will it occur too late in the request lifecycle. I.E. will
the
webhost's bandwidth monitor "capture" the request before ASP.Net (or IIS?)
rejects the request length?
Many thanks
Andy
.
- Prev by Date: Refreshing a page causes databound gridview to re update datasource.
- Next by Date: Re: Webfarm application
- Previous by thread: Refreshing a page causes databound gridview to re update datasource.
- Next by thread: Re: xmlhttp requests not returning until long-running process is compl
- Index(es):
Relevant Pages
|
Loading