add in filetype (bug 1066871)
Merge pull request #2798 from andymckay/1066871

add in file type into the preview serialiser so the front end can see it