Is it necessary to use $HTTP_POST_FILES for file uploads in PHP?

When handling file uploads in PHP, it is not necessary to use $HTTP_POST_FILES as it is deprecated. Instead, you should use $_FILES to access file upload information in PHP. This is the recommended method for handling file uploads in PHP.

// Using $_FILES to handle file uploads in PHP
if(isset($_FILES['file'])){
    $file_name = $_FILES['file']['name'];
    $file_tmp = $_FILES['file']['tmp_name'];
    move_uploaded_file($file_tmp, "uploads/".$file_name);
    echo "File uploaded successfully!";
}