W3cubDocs

/WordPress

wp_handle_upload_error( $file, $message )

Source

File: wp-admin/includes/file.php

function wp_handle_upload_error( &$file, $message ) {
			return array( 'error' => $message );
		}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_handle_upload_error