title: How do you restrict the size of a file being uploaded with JavaScript (or Java) without transferring the entire file?
body: <p>Is there a way to validate on the client side browser whether the size of a file being uploaded from a JSP page is over a set size limit without forcing the user to upload the entire file only to find out it was too large?</p>
  
  <p>I would like to stay away from any proprietary controls or techniques like Flash or ActiveX if possible.</p>
  
  <p>Thanks!</p>