php 批量上传
程序员文章站
2022-03-28 20:49:53
...
$competition_image = $_FILES['competition_image'];//获取传上来的批量的文件
$file = 'uploads/ext_masterdata/doors/';//上传问价到目标目录
for($i=0;$i<count($competition_image['name']);$i++){
$url = $file.$competition_image['name'][$i];
if(move_uploaded_file($competition_image["tmp_name"][$i],$url)){//移动到目标目录
}
}
上一篇: php基础练习--多文件上传