I have this input
<form action="<?=isset($_GET['tree'])?'edit.php':'save.php'?>" method="post" enctype="multipart/form-data" id="<?=isset($_GET['tree'])?'edit-form':'csv-form'?>">
....
.....
<input type="file" name="doc" id="doc" multiple>
I'm trying to handle the uploaded files but with
var_dump($_FILES);
$_FILES only contains the last selected file.