http://www.perlmonks.org?node_id=1232369


in reply to Re^2: 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

So if you can stand JavaScript, and most people can, you could do something like this to get the file size before uploading. If your application can keep track of how much free space you have, a very basic example would be either querying this when rendering the upload page, or via a call back before you begin the file upload. As a side note your closing code tag should be </code>, rather than <code>.