php - Not moving index1 file from temp to destination -
foreach($_files['photo']['name'] $key=>$val){ $temp = $_files['photo']['tmp_name'][$key]; echo $temp." ".$val." ".$key." "; } result:
c:\users\kh35\appdata\local\temp\php73ac.tmp
fig_2.gif
0 //index
//here missing tmp @ index 1
20170818_114534.jpg
1 //index
c:\users\kh35\appdata\local\temp\php73ce.tmp
photo.jpg
2
more details:
move_uploaded_file() function can't upload empty index
//in case of uploading 3 files
at index 0=>tmp of first file
index 1 => empty
index 2 =>tmp of third file
Comments
Post a Comment