assumption you have a page to upload file with input like this:
<input type="file" name="thefile">
And then when you upload the file, ex:myfile.pdf, then just display file name to the succes page lika this:
echo "file name : $thefile_name";
See, just add "_name" for "thefile" of the input type's name. it must be work