Tina, you can�t determine the size of the file before you upload it.
You have an alternative to use
Applet for uploading, where you can determine the size of the file before uploading. But you need signed applet for that. Problem is in this solution that, if you sign applet for MS JVM, it will not work with Sun JVM � and same is true for opposite.