I have a form which allows an unlimited # of uploads,
Im trying to upload the three images on the bottom,
Heres the HTML for the image sefection button (which uses javascript to allow multiple files to be selected
<input type="file" id="picupload" class="picupload" click-type="type2" name="Images[]" accept="image/*" multiple />
But when the form is submitted, im trying to record all 3 of the images like
<?php
echo '<br>FILES[Images]: <pre>';print_r($_FILES['Images']);echo '</pre>';
if(isset($_FILES['Images']['name'][0])) {
if($_FILES['Images']['name'][0] != '') {
$images = $_FILES['Images'];
$total = count($images['name']);
echo 'Count: '.$total.'<br>';
?>
The result
FILES[Images]:
Array
(
[name] => Array
(
[0] => 85535663.jpg
)
[type] => Array
(
[0] => image/jpeg
)
[tmp_name] => Array
(
[0] => /tmp/php78AyhG
)
[error] => Array
(
[0] => 0
)
[size] => Array
(
[0] => 113762
)
)
Count: 1
Should all 3 be shown and the count be 3?