I'm not worried about my code. Your code and mine do the same thing.
I guess I should have expanded it out a bit further. When the file_type check function (your's or mine) 'fails', I am currently having it dump out an error message.
echo "File Type of attempted upload was: $file_type";
In order to see what the script was reading the file as since it is not seeing it as 'application/msword' or 'application/pdf'.
In this case, consistently, the results of the dump are:
File Type of attempted upload was: application/octet-stream
I know that the clients are uploading correctly named documents, (e.g. 'document.doc'). In fact, if they try to re-upload the file again, it often times succeeds.
Why would PHP think that a file with extension ".doc" is an octet-stream??