php 批量上传
程序员文章站
2022-04-06 23:16:22
...
$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)){//移动到目标目录
}
}