As far as I know $_FILES["fieldname"]["size"]
contains the file size after the file has been uploaded.
In Perl, you can read the raw file data very easy chunk-wise and that way determine if the file is too big before it has been fully uploaded.
Is there an easy way to do just the same in PHP
?