I have used ActiveXObject for IE browser but it is not working. I have got the file size for other browsers in js but unable to getting the file size for IE browser. I have used the following code for this:-
if ($.browser.msie==true)
 {
     var fileSystemObject = new ActiveXObject("Scripting.FileSystemObject");
     var path = document.uploadDocumentForm.documentUpload.value;
     var file = fileSystemObject.getFile(path);
     var size = file.size;
     alert(size);
/*  var a = document.getElementById(fileId).value;
            $('#myImage').attr('src',a);
            var imgbytes = document.getElementById('myImage').fileSize;       
            alert("here"+imgbytes);
            var imgkbytes = Math.round(parseInt(imgbytes)/1024);        */
}
else
{
               var fileInput = $("#"+fileId)[0]; 
               var imgbytes = fileInput.files[0].size; 
              var imgkbytes = Math.round(parseInt(imgbytes)/(1024));
}   
Can anyone help me to get the filesize for IE browsers. I have gone through all the ideas but unable to get filesize for IE browser. Please provide the idea or code for this...
 
     
     
    