Código PHP:
if($_POST['cargaPPV'] == "Cargar"){
//echo "Hola mundo";
//Datos del XLS
echo $_FILES['nomina']['name'] . " - ";
echo $_FILES["nomina"]["type"] . " - ";
if($_FILES["nomina"]["type"] == "application/vnd.ms-excel"){
echo "Valido - ";
ini_set('max_input_time', 300);
$uploaddir = 'datos/';
$uploadfile = $uploaddir . basename($_FILES['nomina']['name']);
if (move_uploaded_file($_FILES['nomina']['tmp_name'], $uploadfile)) { //checks file tmp_name for successful upload
echo "File upload successful.\n";
} else {
echo "File upload failed\n";
}
}
}