假設在一個表單中上傳圖片如何分成兩張?
$target_dir = "../../images/user/cover/";
$target_file = $target_dir . basename($_FILES["myFile_cover"]["name"]);
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
$imagename = "chatgether_".$_SESSION['user'] . '.' . $imageFileType;
$destination = $target_dir . $imagename;
if(move_uploaded_file($_FILES["myFile_cover"]["tmp_name"], $destination))
{
}
同一張照片但是複製成兩張照片A照片到A文件夾B照片到B文件夾如何上傳一次但卻有兩張照片?
添加回答
举报
0/150
提交
取消