This page redirects to an external site: https://developer.wordpress.org/reference/functions/check_upload_size/
Determine if uploaded file exceeds space quota.
<code style="color: #000000"><span style="color: #0000BB"><?php check_upload_size</span><span style="color: #007700">( </span><span style="color: #0000BB">$file </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>
<?php
$file = check_upload_size( $file );
if ( $file['error'] != '0' ) {
// The file was too large or has another error.
echo( $file['error'] );
} else {
// No errors, we can do stuff with $file here.
}
?>
check_upload_size() is located in wp-admin/includes/ms.php.