How can we restrict users from attaching file bigger than specified size (to say 20MB). I do have a check at the server side to show errors in case of big files received on the server but that happens too late.
I want to achieve something like gmail, where you get a quick alert specifying
"This file exceeds the 25MB attachment limit. Sorry."
Thanks!
Pratik
Javascript does not have access to this kind of information, but a tool like swfupload can give you nice javascript api's to access this information with flash.
http://swfupload.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With