I have a code block to do upload files, however whenever I try to upload a message appears saying "Please send files with the following extensions: jpg, png or gif ". I'm trying to upload a docx
file and I've already specified this:
$_UP['extensoes'] = array('docx', 'xlsx', 'pdf', 'jpg', 'png', 'gif', 'jpeg' );
Why does the message appear even though I have "freed" other extensions?
$extensao = @strtolower(end(explode('.', $_FILES['arquivoJuridico']['name'])));
if (array_search($extensao, $_UP['extensoes']) === false) {
echo "Por favor, envie arquivos com as seguintes extensões: jpg, png ou gif";
}