在共享服务器上移动用户上载的图像

<?php
$img1Name = $_FILES['img1']['name'];
$target = 'uploads/';
move_uploaded_file($_FILES['img1']['tmp_name'], $target);
?>
<img src="<?php echo 'uploads/' . $img1Name ?>"/>

Why is the image not moving to the uploads folder located where the app is?

Looks like your target directory is wrong, try using following

$target = 'uploads/' .  basename($_FILES["img1"]["name"]);