0
<form action="teste1.php" method="post" enctype="multipart/form-data">
<input type="text" name="title">
<input type="file" name="arquivos[]" multiple>
<?php
$photo=$_FILES["arquivos"];
if(empty($_FILES["arquivos"]["name"])){
echo "vazio";
}
?>
I tried to put the variable photo
in place of files
but gives the same.
Would not be
if (empty($_FILES))
?– Woss
not working with file type, I did with text type and it works blz if(Empty($_FILES['files']['name']){ echo "empty"; }
– Izaac Mendes
Have you tried taking out the brackets? because you are sending an array like this
– Ricardo Gonçalves