input type="file" has a files object attribute containing item():

<input name="myFile" id="myFile" type="file">

js:

var fileSize = document.getElementById("myFile").files.item(0).size;