Setting maxRequestLength for upload file sizes

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
 
N

Natty Gur

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
 
D

David Stephen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,082
Messages
2,570,589
Members
47,211
Latest member
Shamestone

Latest Threads

Top