Setting maxRequestLength for upload file sizes

  • Thread starter Thread starter David Stephen
  • Start date Start date
D

David Stephen

Is it possible to set httpRuntime.maxRequestLength to
limit the suze of an uploaded file dynamically or is it
only possible statically in Web.config file (or
system.config)

ie I would like to give different users a different
maximum limit.

Thank you

David
 
Hi,

As far as I know you cant do it dynamicly. however you can set the max
val in machine.config and check the upload file length do decide if to
process it or not.


Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
 
Is there a way to trap the ContentLength before the entire file is
uploaded.

ie If one user can have a 20MB limit and one only has 100k limit I don't
want the 100k limit uploading large files only to have a message
eventually returned saying too big.

Also reduce quantity of internet transfer.

Thanks
 
Back
Top