This content has been marked as final. Show 4 replies
Based on your other post, it sounds like you no longer need a solution to this problem.
I am curious though, do you want to limit it to ALL versions of Excel, PowerPoint and Word, or do you want to exclude all files EXCEPT Office 2007 versions Excel, Word, and Powerpoint?
In other words, do you want to allow a Word 95 file?
I am also having trouble with Word 2007 file verification as garygll stated. I have tried using "application/vnd.openxmlformats-officedocument.wordprocessingml.document" in the accept list but it still throws an exception when trying to upload docx files. Any ideas on what I can try to allow docx files during upload?
<br>Only files of type "application/vnd.openxmlformats-officedocument.wordprocessingml.document" can be uploaded. <br>Verify that you are uploading a file of the appropriate type.
Coldfusion version 6.1
just run a simple tests to check which mime type is assigned to the file
on upload: use cffile to upload the file without any type restrictions,
then <cfdump var="#cffile#"> and check the output for assigned mime type
This worked out great. Turns out my .docx file had a sub context type of "vnd.ms-word.document.12". Added this to my accept list and I am able to upload .docx files.
Thanks for you help,