Skip to main content
Participating Frequently
May 25, 2017 12:36 PM UTC
Answered

cffile, accept, .docx misreporting as .zip

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 is closed to new replies. Start a new post to keep the conversation going.
haxtbhCorrect answer
Inspiring
May 25, 2017 2:49 PM UTC

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

2 replies

haxtbhCorrect answer
Inspiring
May 25, 2017 2:49 PM UTC

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

Translate
Participating Frequently
May 25, 2017 8:51 PM UTC

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.

Translate