The code given below work fine with firefox but not not with ie....
<script language="javascript">
function findSize() {
var fileInput = document.getElementById("filename");
f_size=fileInput.files[0].size; // Size returned in bytes.
if(f_size>=2000000)
{
alert("File Should be less than or equel to 2MB");
return false;
}
return true;
}
give any solution
.filescollection, nothing you can do about it