![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/09/2018, 11:02
|
|
Respuesta: Validar formulario php de archivos y para los tipos:
$finfo = new finfo(FILEINFO_MIME);
$type = $finfo->file($_FILES["file_input_name"]["tmp_name"]);
$types = ["image/png", "image/jpeg", ...];
if(in_array($type,$types)){
//ok
} |