if($_POST['upload']) {
if($_FILES['image']['error'] == 0) {
if($_FILES['image']['size'] > 10000) die("Размер файла привышает 1 МБ");
$temp = $_FILES['image']['tmp_name'];
$name = $_FILES['image']['name'];
move_uploaded_file($temp,"upload/" . $name);
}
}
<img src="upload/filename" alt="loading..."/>