I have my basic form that's used to capture two images from the user. (hiding other parts of the form)
<form name="myform" id="myform" action="submit.php" method="post" enctype="multipart/form-data">
<input type="file" id="image" name="images[]" accept="image/*" capture="camera" />
<input type="file" id="image" name="images[]" accept="image/*" capture="camera" />
<input type="file" id="image" name="images[]" accept="image/*" capture="camera" />
</form>
It work fine manually adding phones and adding photos straight from the camera on android. But on iPhone it will only upload the last photo taken with the camera (manually adding files works fine still).
So for example if I take a picture for input #1, add one manually for input #2, and take a picture for input #3. Only #2 and #3 will be uploaded.
My best guess is the iPhone camera has some weird cache thing and it gets rid of the first one.
The upload code is fairly similar to templates I've found and, like I stated, works for all cases except for the above.
$countfiles = count($_FILES['images']['name']);
for($i = 0; $i < $countfiles; $i++){
$image_name[$i] = $_FILES['images']['name'][$i];
move_uploaded_file($_FILES['images']['tmp_name'][$i],'upload/'.$image_name[$i]);
}