How does the setting of Register Globals impact the handling of file uploads in PHP?

When Register Globals is enabled in PHP, file uploads are automatically stored in global variables, which can pose security risks. To handle file uploads securely, it is recommended to disable Register Globals and use the superglobal $_FILES array to access uploaded files.

// Disable Register Globals in PHP configuration
// Add the following line to php.ini: register_globals = Off

// Access uploaded files using $_FILES superglobal
$uploadedFile = $_FILES['file_input_name'];