Hello to all of you I charge different types of files and I keep them in a folder and I store the path in the BD, all the files load them well (.doc, xls ...) except (docx, xlsx ...) .Docx files it is copied to the directory but it is not possible to obtain its name, size type etc.
This is my code:
<?php
require_once 'connect.php';
if($_POST) {
$nombre = $_FILES['archivo']['name'];
$tipo = $_FILES['archivo']['type'];
$tamanio = $_FILES['archivo']['size'];
$ruta = $_FILES['archivo']['tmp_name'];
$destino = "../archivos/" . $nombre;
copy($ruta, $destino);
$sql = "INSERT INTO documentos (tipo,tamano,destino,fecha) VALUES ('$tipo', '$tamanio', '$nombre',NOW())";
$query = $connect->query($sql);
$connect->close();
}