The page seemed to be setting the filename column to the file extension. I have made an update to the insert that is on this page to use the serverFileName instead to see what the result is for you.
If you get the same bad result you should add in this code just after line 34 on the current page:
die("the server file name is: " . $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]);
This will let you know what the server file name value is immediately after the upload occurs.