I have input with id case_attachment and I have tried get file size like this
($('#case_attachment'))[0].files[0].size
but it does not work on IE9
IE doesn't support this feature :(
I had found a great plugin for file upload jQuery-File-Upload
or you better use an ActiveX control to perform this action
function getSize()
{
var myFSO = new ActiveXObject("Scripting.FileSystemObject");
var filepath = document.upload.file.value;
var thefile = myFSO.getFile(filepath);
var size = thefile.size;
alert(size + " bytes");
}