Moving Uploaded excel sheet to a location in server

I’m looking for help processing file uploads. I’ve got my .html form set up complete with excel file-upload field.
All I want to do is have file saved in a folder on my server .I have got a php script which i have pasted below:


<?php 
 $target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}

 ?> 

I have problem modifying this code .
My file name is InputSheet.XLSX, and the path is going to be’./data/InputSheet.xlsx’
I am not sure about the tmp_name.
Please modify my code such that it moves the excel into the specified path.
If anyone could at least point me in the right direction it would help a lot!
Thanks.

change $target_path to point to “data/”.