WordPress at a glance
function is not described

upload_is_file_too_big() WP 3.0.0

Check whether an upload is too big.

No Hooks.

Return

String/Array. If the upload is under the size limit, $upload is returned. Otherwise returns an error message.

Usage

upload_is_file_too_big( $upload );
$upload(array) (required)

Code of upload is file too big: wp-includes/ms-functions.php VER 5.1.1

<?php
function upload_is_file_too_big( $upload ) {
	if ( ! is_array( $upload ) || defined( 'WP_IMPORTING' ) || get_site_option( 'upload_space_check_disabled' ) ) {
		return $upload;
	}

	if ( strlen( $upload['bits'] ) > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
		/* translators: %s: maximum allowed file size in kilobytes */
		return sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) );
	}

	return $upload;
}