http://qs321.pair.com?node_id=1232372


in reply to Re^4: retrieving users input Form the keyboard while perl is running in the remote webserver
in thread retrieving users input from the keyboard while perl is running in the remote webserver

For completeness, yes, this is JavaScript, rather than Java. Unless you're using some sort of client side technology (JavaScript etc) then you are not going to be able to identify the file size before upload. By default JavaScript is enabled on all mainstream browsers, for quite some time now. Other than that you're dependent on trying to upload the file and checking. See also CGI -> Processing a file upload field, including the section on legacy usage.