上传文件

<form action="141.php" method="post" enctype="multipart/form-data" >
<input type="hidden" name="MAX_FILE_SIZE" value="3000000" />

goods_name:<input type="text" name="goods_name" >
<br>
ori_image:<input type="file" name="ori_image" />
<br>
ori_image:<input type="file" name="ori_image1" />
<br>


<input type="submit" >
</form>
<?php
echo '<pre>';
var_dump($_POST);
echo '<hr>';
var_dump($_FILES['ori_image']);


echo '<hr>';
if(move_uploaded_file($_FILES['ori_image']['tmp_name'], './upload.jpg')) {
    echo '成功';
}
原文地址:https://www.cnblogs.com/suxiaolong/p/5949218.html