HEX
Server: Apache
System: Linux top 5.8.11-1.el7.elrepo.x86_64 #1 SMP Tue Sep 22 18:18:35 EDT 2020 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.018111.cn/wp-content/plugins/wp-user-manager/templates/form-fields/file-field.php
<?php
/**
 * The template for displaying the file field.
 *
 * This template can be overridden by copying it to yourtheme/wpum/form-fields/file-field.php
 *
 * HOWEVER, on occasion WPUM will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @version 1.0.0
 */

 // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$classes            = array( 'input-text' );
$allowed_mime_types = ! empty( $data->allowed_mime_types ) ? explode( ',', $data->allowed_mime_types ) : array_values( get_allowed_mime_types() );
$field_name         = isset( $data->name ) ? $data->name : $data->key;
$field_name        .= ! empty( $data->multiple ) ? '[]' : '';
$file_size          = isset( $data->max_file_size ) ? $data->max_file_size : false;

if ( ! empty( $data->ajax ) && wpum_user_can_upload_file_via_ajax() ) {
	wp_enqueue_script( 'wpum-ajax-file-upload' );
	$classes[] = 'wpum-file-upload';
}
?>

<div class="wpum-uploaded-files">
  <?php
	if ( ! empty( $data->value ) ) :
		if ( is_array( $data->value ) ) :
			if ( isset( $data->value['url'] ) ) :
				WPUM()->templates->set_template_data( array(
					'key'   => $data->key,
					'name'  => 'current_' . $field_name,
					'value' => $data->value['url'],
					'type'  => $data->type,
					'field' => array(),
				) )->get_template_part( 'form-fields/file', 'uploaded' );
			endif;
		elseif ( $data->value ) :
			WPUM()->templates->set_template_data( array(
				'key'   => $data->key,
				'name'  => 'current_' . $field_name,
				'value' => $data->value,
				'type'  => $data->type,
				'field' => array(),
			) )->get_template_part( 'form-fields/file', 'uploaded' );
		endif;
  endif;
	?>
</div>

<?php
$name = isset( $data->name ) ? $data->name : $data->key;
if ( ! empty( $data->multiple ) ) {
	$name .= '[]';
}
?>
<input type="file" placeholder="<?php echo empty( $data->placeholder ) ? '' : esc_attr( $data->placeholder ); ?>" id="<?php echo esc_attr( $data->key ); ?>" name="<?php echo esc_attr( $name ); ?>" class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>" data-file_types="<?php echo esc_attr( implode( '|', $allowed_mime_types ) ); ?>" <?php echo ! empty( $data->multiple ) ? 'multiple' : ''; ?> />
<small class="description">
<?php
if ( ! empty( $data->description ) ) :
		 echo esc_html( $data->description );
		endif;
		// translators: %s Maximum file size
	  echo sprintf( esc_html__( 'Maximum file size: %s.', 'wp-user-manager' ), esc_html( wpum_max_upload_size( isset( $data->key ) ? $data->key : '', $file_size ) ) );
?>
</small>