title: how to check file size before upload in javascript
body: <p>I use this code for check file type</p>
  
  <pre><code>// - coursesweb.net
    // get the file name and split it to separe the extension
    var name = el.value;
    var ar_name = name.split('.');
  </code></pre>
  
  <p>but now i want to apply this code to get file size , how can i do ?</p>
  
  <p><a href="http://coursesweb.net/javascript/check-file-type-before-upload_t" rel="nofollow">code from this site</a></p>