title: Using jQuery, Restricting File Size Before Uploading
body: <p>On PHP, they have a way to restrict file size AFTER uploading, but not BEFORE uploading. I use the <a href="http://malsup.com/jquery/form/" rel="noreferrer">Malsup jQuery Form Plugin</a> for my form posting, and it supports image file posting.</p>
  
  <p>I was wondering if perhaps there's a restriction where I can set how many bytes can pass through that AJAX stream up to the server? That could permit me to check that file size and return an error if the file is too big. </p>
  
  <p>By doing this on the client side, it blocks those newbies who take a 10MB photo shot from their Pentax and try to upload that.</p>