wp handle upload code example
Example: wp_handle_upload return uploaded file name
$movefile = wp_handle_upload($uploadedfile, array('test_form' => false));
$new_filename = basename( $movefile['file'] );
$filename_was_changed = new_filename !== $_FILES['image_verification']['name'];