Nicholas,
The machine.config file defines the <httpRuntime> element that can be
used to control the max file size. For example,
<!-- set max size to 60 megs and max timeout to 60 minutes -->
<httpRuntime executionTimeout="3600" maxRequestLength="61440" />
You can override this in your own application's web.config file so
that it only affects your application and not all applications.
If a user attempts to upload a file greator than the max size, the
browser will immediately give the user an error message.
Unfortunately the error message is not user friendly. If you can live
with that, that is the easiest thing to do.
sayed
"nicholas" <mu********@hotmail.com> wrote in message news:<ue**************@TK2MSFTNGP11.phx.gbl>...
when I upload a file, I can set in my code not to save it if the file size
is too large.
But then the user has allready been waiting a few minutes to upload his
file, as this can only be controlled once it is uploaded.
I would like to say to the user the file is too large before it uploads it.
any ideas?
thx
-- using vb.net on asp.net page