I basically want to upload multiple files into a php to process but php only takes one of the files I selected to upload
my html:
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="userfiles[]" multiple="multiple">
<input type="submit" value="Upload">
</form>
my php for now:
echo '<pre>', print_r($_FILES), '</pre>';
$countfiles = count($_FILES['file']['name']);
and the output:
Array
(
[file] => Array
(
[name] => pigeon.jpg
[type] => image/jpeg
[tmp_name] => D:\Programs\xampp\tmp\phpA3DF.tmp
[error] => 0
[size] => 105291
)
)
1
no matter how many files I select only one gets processed. Thanks in advance :)
IE works fine for some reason..