WordPress at a glance
function is not described

fix_import_form_size() WP 3.0.0

Get the remaining upload space for this site.

No Hooks.

Return

Int. Max size in bytes

Usage

fix_import_form_size( $size );
$size(int) (required)
Current max size in bytes

Code of fix import form size: wp-admin/includes/ms.php VER 5.1.1

<?php
function fix_import_form_size( $size ) {
	if ( upload_is_user_over_quota( false ) ) {
		return 0;
	}
	$available = get_upload_space_available();
	return min( $size, $available );
}