finchè inserivo immagini, facendo presto a controllare
ma ora sto inserendo anche documenti .pdf, .doc e anche immaginiCodice PHP:
$allowed_types = array("image/gif","image/pjpeg","image/jpeg");
if(!in_array($_FILES["upfile"]["type"][$Indice],$allowed_types))
come devo impostare il mio array?
cosi? :master:Codice PHP:
$allowed_types = array(file/doc","file/pdf","image/jpeg");
if(!in_array($_FILES["upfile"]["type"][$Indice],$allowed_types))