Dear All,

how can i find the size of a file when it is uploading using javascript,

fileupload.php
----------------



<form name=frmupload enctype="multipart/form-data" onSubmit="return validate()" action="upload.php">

<input type=file name=userfile>

<input type=submit name=submit value=submit>
</form>


<script language=javascript>

function validate()
{


if the size of the userfile is greater than 200 kb this function should be return false else it should return true


}




</script>


regards
bvsureshbabu