asp.net - Validate upload size to prevent HTTP Exception -


i building application integrated audio upload, though have problem application running system.web.httpexception: maximum request length exceeded when uploading audio files on 10mb, have configured in web.config

<httpruntime maxrequestlength="10485"> 

i know possibility increase request limits in order prevent exception, instead of allowing larger files want catch , prevent http request.

it may possible validate size client side, client side validation can bypassed looking server side validation doesn't requires me increase limits.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -