当前位置:Gxlcms > PHP教程 > php批量上传

php批量上传

时间:2021-07-01 10:21:17 帮助过:36人阅读

$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)){//移动到目标目录

}
}

人气教程排行