Posts by Wagner Medina • 11 points
1 post
-
1
votes3
answers268
viewsA: PHP How do I make an image to be the default icon if I don’t have an image selected?
I think you could do a simple check before calling the upload class, something like: if (isset($_FILES['arquivo'])) { "Executa ação de upload" } else { "utiliza imagem padrão" caminho/imagem.jpg }…