What is the potential issue with the code provided for uploading multiple images and displaying their URLs in a textarea in PHP?

The potential issue with the code provided is that the `name` attribute of the file input field is not an array, so only one file can be uploaded at a time. To allow multiple files to be uploaded, you need to change the `name` attribute to an array by adding `[]` at the end. Additionally, you need to loop through the uploaded files to display their URLs in the textarea.

<?php
if(isset($_POST['submit'])){
    $total = count($_FILES['images']['name']);
    $imageUrls = [];
    
    for($i=0; $i<$total; $i++){
        $tmpFilePath = $_FILES['images']['tmp_name'][$i];
        if($tmpFilePath != ""){
            $newFilePath = "uploads/" . $_FILES['images']['name'][$i];
            move_uploaded_file($tmpFilePath, $newFilePath);
            $imageUrls[] = $newFilePath;
        }
    }
    
    echo "<textarea rows='4' cols='50'>";
    foreach($imageUrls as $url){
        echo $url . "\n";
    }
    echo "</textarea>";
}
?>

<form method="post" enctype="multipart/form-data">
    <input type="file" name="images[]" multiple>
    <input type="submit" name="submit" value="Upload">
</form>