Either you'll need to use an ActiveX control or you'll have to use a server-side validation.
You cannot validate filesize using AJAX 'cause that'll require posting the file, which again is not possible due to JavaScript's limited filesystem abilities.

You can also try the same with an applet, which will ensure cross-platform functioning.