Ya you will have to make your own. the filetype() function only returns one of the following: "fifo","char","dir","block","link","file","unknown"

What I would personally do is grab the extension of the file and run it across an array or table I have built determining what kind of document it is.

-Matt