I want to show an uploaded image on the web. I'm using a plugin called Dropzone to upload the pictures but I don know how to recover and display them on the page.
This is the php I'm using to upload the images:
<?php
$ds = DIRECTORY_SEPARATOR; //1
$storeFolder = 'uploads';
if (!empty($_FILES)) {
$tempFile = $_FILES['file']['tmp_name'];
$targetPath = dirname( __FILE__ ) . $ds. $storeFolder . $ds;
$targetFile = $targetPath. $_FILES['file']['name'];
move_uploaded_file($tempFile,$targetFile); /
}
?>
edit: I want to show the image on the same page, removing the uploading box and replacing it with the image with JQuery/php