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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -