Get the file Attributes (client side) using Javascript
<p>In my application, I need to calculate the size of the file in <strong>client</strong> side (before uploading to server). </p>

<p>I want to restrict the file being  uploaded if it doesn't satisfy my requirements like file <strong>size</strong>, file <strong>type</strong>..</p>

<p>Is it possible to achieve this in client side using JavaScript?</p>
