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.
Here is what I see in Chrome web browser :
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 ?
NOTE: In my web site I use jQuery, so is not important to be only regular JavaScript the answer.
Kind regards Merianos Nikos