Hi, the following script uses a plugin hook to show the uploaded image right below the upload form. You need to put it at the end of functions.php file of your theme
if (!function_exists('wfu_after_upload_handler')) {
function wfu_after_upload_handler($changable_data, $additional_data) {
foreach ( $additional_data["files"] as $file ) {
if ( $file["upload_result"] == "success" || $file["upload_result"] == "warning" ) {
$url = str_replace(ABSPATH, site_url().'/', $file["filepath"]);
$changable_data["js_script"] = "
var block = document.getElementById('wordpress_file_upload_block_1');
var div = document.getElementById('wfu_img_container');
if (div) div.parentNode.removeChild(div);
div = document.createElement('DIV');
div.id = 'wfu_img_container';
var img = document.createElement('IMG');
img.src = '$url';
div.appendChild(img);
block.parentNode.insertBefore(div, block.nextElementSibling);
";
break;
}
}
return $changable_data;
}
add_filter('wfu_after_upload', 'wfu_after_upload_handler', 10, 2);
}
Showing it in another page requires more customization, but it could be done.
Regards
Nickolas