As far as I know, $_FILES["fieldname"]["size"]contains the file size after the file has been downloaded.
In Perl, you can easily read the raw data of a file, and thus determine if the file is too large before it is fully loaded.
Is there an easy way to do the same in PHP?
source
share