Currently I am using
if(navigator.appName=='Microsoft Internet Explorer'){
if(component.value){
var oas = new ActiveXObject("Scripting.FileSystemObject");
var e = oas.getFile(component.value);
var size = e.size;
}
}
to validate the file size.
Is there any other way to validate the size
Automation server can't create object error is displayed
I know it has something to do with Enabling ActiveX Controls in Settings, but thats not going to happen because one cant control client side system and IE7/8 doesnot even support file Api