8.4.2: How to check files for upload_max_filesize and post_max_size prior to upload?

Permalink
How do you check uploading files for upload_max_filesize and post_max_size on the server side? If files are bigger than these values, they don't even get to the file array. So how can I prevent file uploads which are bigger than these?

linuxoid