Skip to main content
Participating Frequently
May 25, 2017
Answered

cffile, accept, .docx misreporting as .zip

  • May 25, 2017
  • 1 reply
  • 1197 views

Using CF11, MacOS.

I have a file upload which accepts doc, docx, pdf. Doc and pdf behave as expected. However, whenever I try to upload a docx I receive the following error: "The MIME type or the Extension of the uploaded file application/zip was not accepted by the server".

I saw that there was a similar bug that was meant to be fixed in CF11, see this thread: Tracker

My cffile tag looks like this:

<cffile action = "uploadAll"

  fileField = "arguments.stuData.addDocuments"

  destination = "#dirTemp#"

  nameConflict = "MakeUnique"

  result="arrResult"

  accept = "application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/x-tika-msoffice"

/>

Can anyone help?

This topic has been closed for replies.
Correct answer haxtbh

What update level is your CF11? Have you patched it to the latest version that fixes the similar bug?

1 reply

haxtbhCorrect answer
Inspiring
May 25, 2017

What update level is your CF11? Have you patched it to the latest version that fixes the similar bug?

Participating Frequently
May 25, 2017

Hi

Nice thought!

I was using Version: 11,0,0,289974. The bug claims to have been fixed in update 5. So, I just upgraded to Version: 11,0,12,302575 and now docx is fine!

Thanks for your help.