Hi,
The file size is currently based on the upload size installed on your site.
You can Customize the file size of upload for non-adminstrator users, by activating Child Theme and adding this functionality to the Child Theme functions.php file.
function noo_limit_upload_size_limit_for_non_admin( $limit ) {
if ( ! current_user_can( 'manage_options' ) ) {
$limit = 1000000; // 1mb in bytes
}
return $limit;
}
add_filter( 'upload_size_limit', 'noo_limit_upload_size_limit_for_non_admin' );
function noo_apply_wp_handle_upload_prefilter( $file ) {
if ( ! current_user_can( 'manage_options' ) ) {
$limit = 1000000; // 1mb in bytes
if ( $file['size'] > $limit ) {
$file['error'] = __( 'Maximum filesize is 1mb', 'noo' );
}
}
return $file;
}
add_filter( 'wp_handle_upload_prefilter', 'noo_apply_wp_handle_upload_prefilter' );
Best regards,
tb.