title: How to access files attribute of a file element using JavaScript
body: <p>I have in my form an input element with type of file. What I like to do is to check the file size before the element is uploaded for validation issue. By using the majority of primary Web Browsers (except IE that always does things harder), I have find out that all are using an "attribute" that updated whenever I choose a new file and display the file size, as well other usefull information.</p>
  
  <p>Here is what I see in Chrome web browser :</p>
  
  <p><img src="https://i.stack.imgur.com/Xh42C.jpg" alt="enter image description here"></p>
  
  <p>The question now is, how can I access that value with JavaScript ? I have try several ways, but none was good for me ? Any good idea please ?</p>
  
  <p>NOTE: In my web site I use jQuery, so is not important to be only regular JavaScript the answer.</p>
  
  <p>Kind regards
  Merianos Nikos</p>