Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DOCX or XLSX- Error while uploading this type of File

Contributor ,
Nov 27, 2008 Nov 27, 2008
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
TOPICS
Getting started
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 28, 2008 Nov 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 28, 2008 Nov 28, 2008
.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Nov 28, 2008 Nov 28, 2008
how we over come the reason#1( your web server does not have the mime type defined for this file type)
Am using iis 5.1
Please advice
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 30, 2008 Nov 30, 2008
LATEST
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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources