Where's the contents of fileRecs.php? That's where your script is breaking down.
Also why all the php stuff at the bottom of the form? Personally I'd just leave the form as vanilla html:
<form enctype='multipart/form-data' action='fileRecs.php' method='post'>
<input type='hidden' name='MAX_FILE_SIZE' value ='1000000' />
<label for='uploadedfile'>Choose a file to upload:</label>
<input name='uploadedfile' type='file' />
<input type='submit' name ='upload2' value='Upload File' />
What exactly is the error you're getting. Something about file not existing? If so, your destination is wrong. Perhaps it would help to include your virtual root at the start of your path: $path = $_SERVER['DOCUMENT_ROOT'] . '/uploads/'