How can we prevent users from attaching a file larger than the specified size (say, 20 MB). I have a server side check to show errors in the case of large files received on the server, but this happens too late.
I want to achieve something like gmail where you get a quick alert indicating
"This file exceeds the 25MB attachment limit. Sorry."
Thank!
Pratik
source
share