Skip to main content
Dileep_NR
Inspiring
November 28, 2008
Question

DOCX or XLSX- Error while uploading this type of File

  • November 28, 2008
  • 2 replies
  • 2076 views
In cffile tag accept is given as follows
accept="application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"

Error :--

The MIME type of the uploaded file application/octet-stream was not accepted by the server.

Only files of type application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet can be uploaded.
Verify that you are uploading a file of the appropriate type.


Please help
This topic has been closed for replies.

2 replies

December 1, 2008
Try getting rid of the accept clause on the cffile and see what happens

accept = Limits the MIME types to accept.

Then upload the problem file types and if successful immediately after the cffile tag check the values of

contentSubType MIME content subtype of the saved file
contentType MIME content type of the saved file

add that to your accept list if you actually need to have an accept restriction

Inspiring
November 28, 2008
can't remember exactly which one it is, but it is for one of the 2
reasons (or both of them):
1) your web server does not have the mime type defined for this file type
2) your browser sends incorrect mime type data with the upload

if you do have Office 2007 installed on the computer you are uploading
from, but still see this error, then it is reason #1...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Dileep_NR
Dileep_NRAuthor
Inspiring
November 28, 2008
.