📅  最后修改于: 2022-03-11 14:54:12.143000             🧑  作者: Mango
//This is the minimal code for an image upload for first time learners
//html portion
ImageUpload
//php portion
";
echo "File Name:: ".$image['name'];
move_uploaded_file($image['tmp_name'],"photos/".$image['name']);
//here the "photos" folder is in same folder as the upload.php,
//otherwise complete url has to be mentioned
?>