title: Check filesize before upload
body: <p>I have a website that allows users to upload video files but I want to limit the filesize to 2MB , this is pretty straightforward after uploading the file but does anyone knows if I can check the file-size <strong>before</strong> uploading it so I don't overload the server unnecessarily ? </p>
  
  <p>I might be looking for a javascript/ajax solution but I don't have a clue on how to achieve this.</p>
  
  <p>Any help will be very welcome. Thanks guys!</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I need to check the file size on <strong>client-side</strong> and NOT on <strong>server-side</strong>, is this possible ?</p>