What is the correct parameter to use with filesize() when checking the size of an uploaded file in PHP?

When checking the size of an uploaded file in PHP using the `filesize()` function, you should use the `$_FILES['file']['tmp_name']` parameter to get the temporary file path of the uploaded file. This parameter allows you to accurately determine the size of the uploaded file before moving it to its final destination.

$file_size = filesize($_FILES['file']['tmp_name']);
if ($file_size > 1000000) {
    echo "File size exceeds limit.";
} else {
    // Process the uploaded file
}