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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -