How can the $_FILES array be utilized to access uploaded files in PHP?

To access uploaded files in PHP, the $_FILES array can be utilized. This array contains information about the uploaded file, such as its name, type, size, and temporary location on the server. By using keys in the $_FILES array, we can access and manipulate the uploaded file as needed in our PHP code.

<?php
if(isset($_FILES['file'])){
    $file_name = $_FILES['file']['name'];
    $file_tmp = $_FILES['file']['tmp_name'];
    
    // Move the uploaded file to a desired location
    move_uploaded_file($file_tmp, "uploads/" . $file_name);
}
?>