Código:
<form enctype='multipart/form-data' action='' method='post'> <input name='uploadedfile' type='file'><br> <input type='submit' value='Subir skin'> </form> <?php $target_path = "MinecraftSkins/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "<span style='color:green;'>El archivo ". basename( $_FILES['uploadedfile']['name']). " ha sido subido</span><br>"; }else{ echo "Sube tu skin con tu nombre de usuario"; } ?>