Using the Input control form for uploading a file to an IIS/ASP.net server.

How can I check the file size on the client using javascript prior to posting the form and file for upload?

I want to limit the size of the file at the client, and not check it once it gets to the server.

Usha