wp_handle_upload_error() WordPress Function
The wp_handle_upload_error() function is used to handle errors encountered during the file upload process. This function can be used to display an error message to the user or to log the error.
wp_handle_upload_error( $file, $message ) #
Contents
Source
File: wp-admin/includes/file.php
function wp_handle_upload_error( &$file, $message ) { return array( 'error' => $message ); }
Expand full source codeCollapse full source codeView on TracView on GitHub