I am a beginner in php. In order to upload some files, I put the script.php below on a server (hosted by another company) and for more than a year it has been okay for my need.
<?php
    $file_path = "";
    $file_path = $file_path . basename( $_FILES['uploaded_file']['name']);
    if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $file_path)) {
        echo "success";
    } else{
        echo "fail";
    }
 ?>
All of the sudden this stopped working with the error message below.
PHP Notice:  Undefined index: uploaded_file in /home/someFolders/script.php on line 5
PHP Notice:  Undefined index: uploaded_file in /home/someFolders/script.php on line 6
What could have gone wrong and what should I change to make my uploads work again?
 
    