📜  php代码示例中文件上传的基本代码

📅  最后修改于: 2022-03-11 14:54:12.143000             🧑  作者: Mango

代码示例1
//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 ?>