Código PHP:
$directorio = 'Class/Factura/';
foreach ($_FILES["FacturaPDF"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["FacturaPDF"]["tmp_name"][$key];
$name = $_FILES["FacturaPDF"]["name"][$key];
move_uploaded_file($tmp_name, "$directorio/$name");
}
}
echo "Facturas Subidas: $name <br>";