I have a problem trying to upload an image through PHP.
Field in form:
<input type="file" name="imagem" id="ff_imagem_serv"/>
Then when I give submit it executes the code:
$name = $_FILES['imagem']['name'];
$tmp_name = $_FILES['imagem']['tmp_name'];
$location = "imagens_noticia/$name";
move_uploaded_file($tmp_name,$location);
Can anyone help me?