
Upload File Size Limit in IE.
function IELimmit()
{
var myFSO = new ActiveXObject("Scripting.FileSystemObject");
var filepath = document.calculate.uploaded_file.value;
var thefile = myFSO.getFile(filepath);
var size = thefile.size;
if (size > 2097152) {
alert ("Unable to proceed upload, File is larger than 2mb.\nPlease upload only files less than 2mb.");
return false;
}
return true;
}
//this code is tested and running.