How can the code be modified to upload a specific file from a directory instead of using a wildcard like "*alles*"?

To upload a specific file from a directory in PHP, you can modify the code to directly specify the file name instead of using a wildcard like "*alles*". This can be achieved by providing the exact file name in the `glob()` function or by directly referencing the file path in the `move_uploaded_file()` function.

$target_dir = "uploads/";
$specific_file = "example.jpg"; // specify the exact file name here
$target_file = $target_dir . $specific_file;

if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
    echo "The file ". htmlspecialchars(basename($_FILES["fileToUpload"]["name"])). " has been uploaded.";
} else {
    echo "Sorry, there was an error uploading your file.";
}