This doesn't help you with CF9, but CF10 does examine file headers to confirm mimetype.
I'm hoping that someone wrote a CFC/UDF that will do the same thing in CF9.
Haven't found it, yet.
1 person found this helpful
Did you check riaforge.org?
They have a function called Magic Mime: http://magicmime.riaforge.org/
Similar to how Linux/Unix check the contents of a file to determine their type, instead of using the file extension, this CF function performs a similar task.
Simple CFFUNCTION that returns a structure detailing the filetype/mimetype etc.
Adobe PDF Document
Microsoft Office Open XML Format Document
Microsoft Office Open XML Format Spreadsheet
Microsoft Office Open XML Format Presentation
Microsoft Office Word 97-2003 Document
Microsoft Office Excel 97-2003 Document
Microsoft Office Powerpoint 97-2003 Document
Graphics interchange format Image
Portable Network Graphics Image
Thanks for the heads-up, Tim. I'll look into it, and try to get the decision-maker to d/l and put it where us developers can reach it.
Unfortunately, Wordpress is blocked by my network admins, so I can't download it. But thank you for the suggestion.