src/wp-admin/includes/ms.php 1 location
|
@@ 36-38 (lines=3) @@
|
33 |
|
$file['error'] = sprintf( __( 'Not enough space to upload. %1$s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) ); |
34 |
|
} |
35 |
|
|
36 |
|
if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) { |
37 |
|
/* translators: 1: Maximum allowed file size in kilobytes */ |
38 |
|
$file['error'] = sprintf( __( 'This file is too big. Files must be less than %1$s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) ); |
39 |
|
} |
40 |
|
|
41 |
|
if ( upload_is_user_over_quota( false ) ) { |
src/wp-includes/ms-functions.php 1 location
|
@@ 1980-1982 (lines=3) @@
|
1977 |
|
if ( ! is_array( $upload ) || defined( 'WP_IMPORTING' ) || get_site_option( 'upload_space_check_disabled' ) ) |
1978 |
|
return $upload; |
1979 |
|
|
1980 |
|
if ( strlen( $upload['bits'] ) > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) { |
1981 |
|
return sprintf( __( 'This file is too big. Files must be less than %d KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) ); |
1982 |
|
} |
1983 |
|
|
1984 |
|
return $upload; |
1985 |
|
} |