One of my users was trying to upload a Microsoft Word document using CFFILE. The document was created in Office 2007, but was saved in Office 2003 format (.doc). The upload is done with this code, which has worked in the past with PDF's:
<cftry>
<cffile action="UPLOAD"
filefield="file_upload"
destination="files\temp"
nameconflict="OVERWRITE"
accept="application/unknown,application/pdf,application/msword,text/h tml,text/plain,application/rtf,text/richtext,text/xml">
<cfset accepted="true">
<cfcatch type="any">
<cfset accepted="false">
</cfcatch>
</cftry>
When I cfdump the cfcatch structure after this fails, it shows the MIME type of the file that I was attempting to upload as "application/x-tika-msoffice"
When I add this MIME type to the accept parameter of cffile and try the upload again, it gives this error:
The MIME type or the Extension of the uploaded file application/x-tika-msoffice was not accepted by the server.
What can I do to allow this file to be uploaded?
I am using CF10 Standard on IIS 7.5 on Windows Server 2008R2.
Thanks.